mirror of
https://github.com/huashengdun/webssh.git
synced 2026-02-14 11:49:50 +00:00
Updated lookup_hostname
This commit is contained in:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user