def test_no_default_hostname_when_not_using_networking(self):
    service = Service('foo', image='foo', use_networking=False, client=self.mock_client)
    opts = service._get_container_create_options({'image': 'foo'}, 1)
    assert (opts.get('hostname') is None)
def test_no_default_hostname_when_not_using_networking(self):
    service = Service('foo', image='foo', use_networking=False, client=self.mock_client)
    opts = service._get_container_create_options({'image': 'foo'}, 1)
    assert (opts.get('hostname') is None)