mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +01:00
Add assertNotHTTPResponse to HTTP unit tests.
This commit is contained in:
parent
f4b81659af
commit
0e61cf9837
@ -585,6 +585,10 @@ class HTTPPluginTestCase(PluginTestCase):
|
|||||||
response = self.request(uri, read=False, **kwargs)
|
response = self.request(uri, read=False, **kwargs)
|
||||||
self.assertEqual(response, expectedResponse)
|
self.assertEqual(response, expectedResponse)
|
||||||
|
|
||||||
|
def assertNotHTTPResponse(self, irc, expectedResponse, **kwargs):
|
||||||
|
response = self.request(uri, read=False, **kwargs)
|
||||||
|
self.assertNotEqual(response, expectedResponse)
|
||||||
|
|
||||||
class ChannelHTTPPluginTestCase(ChannelPluginTestCase, HTTPPluginTestCase):
|
class ChannelHTTPPluginTestCase(ChannelPluginTestCase, HTTPPluginTestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
ChannelPluginTestCase.setUp(self, forceSetup=True)
|
ChannelPluginTestCase.setUp(self, forceSetup=True)
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
"""stick the various versioning attributes in here, so we only have to change
|
"""stick the various versioning attributes in here, so we only have to change
|
||||||
them once."""
|
them once."""
|
||||||
version = '0.83.4.1+limnoria (2011-07-03T16:16:19+0200)'
|
version = '0.83.4.1+limnoria (2011-07-03T17:09:53+0200)'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user