Updated lookup_hostname

This commit is contained in:
Sheng
2018-10-08 22:37:03 +08:00
parent c873b50522
commit 33703f0ca3
2 changed files with 9 additions and 6 deletions

View File

@@ -536,4 +536,5 @@ class TestAppWithRejectPolicy(OtherTestBase):
data = json.loads(to_str(response.body))
self.assertIsNone(data['id'])
self.assertIsNone(data['encoding'])
self.assertEqual('Connection to 127.0.0.1 is not allowed.', data['status']) # noqa
message = 'Connection to {}:{} is not allowed.'.format(self.body['hostname'], self.sshserver_port) # noqa
self.assertEqual(message, data['status'])