Add assertNotHTTPResponse to HTTP unit tests.

This commit is contained in:
Valentin Lorentz 2011-07-03 17:09:53 +02:00
parent f4b81659af
commit 0e61cf9837
2 changed files with 5 additions and 1 deletions

View File

@ -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)

View File

@ -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)'