tests: test_stream_name: fix non-localhost Docker

This commit is contained in:
David Wilson 2018-03-22 13:25:56 +05:45
parent 08612d4ca2
commit 2d7821b824
1 changed files with 5 additions and 2 deletions

View File

@ -28,8 +28,11 @@ class SshTest(testlib.DockerMixin, unittest2.TestCase):
username='has-sudo',
password='y',
)
self.assertEquals('ssh.localhost:%s' % (self.dockerized_ssh.port,),
context.name)
name = 'ssh.%s:%s' % (
self.dockerized_ssh.get_host(),
self.dockerized_ssh.port,
)
self.assertEquals(name, context.name)
def test_via_stream_name(self):
context = self.docker_ssh(