Commit 5af99cc3 authored by Alexander Meißner's avatar Alexander Meißner

Fixed assertResponse() signature

parent 07185041
Pipeline #6621 passed with stage
in 5 minutes and 4 seconds
......@@ -5,7 +5,7 @@ from util import BaseTest
class TestDrops(BaseTest):
def assertResponse(self, expectedCode, message=None): # pylint: disable=invalid-name
def assertResponse(self, expected_code, message=None): # pylint: disable=invalid-name
if isinstance(message, str):
message = message.encode('ASCII')
while message:
......@@ -13,7 +13,7 @@ class TestDrops(BaseTest):
self.client.send(message[0:sliceLen])
message = message[sliceLen:]
time.sleep(random.uniform(0.01, 0.1))
super(TestDrops, self).assertResponse(expectedCode)
super(TestDrops, self).assertResponse(expected_code)
def test_silly_window_syndrome(self):
self.assertResponse(250, 'HELO marschke.me\r\n')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment