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)
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):
def setUp(self):
ChannelPluginTestCase.setUp(self, forceSetup=True)

View File

@ -1,3 +1,3 @@
"""stick the various versioning attributes in here, so we only have to change
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)'