def test_split_domainname_none(self):
    service = Service('foo', image='foo', hostname='name.domain.tld', client=self.mock_client)
    opts = service._get_container_create_options({'image': 'foo'}, 1)
    assert (opts['hostname'] == 'name.domain.tld'), 'hostname'
    assert (not ('domainname' in opts)), 'domainname'
def test_split_domainname_none(self):
    service = Service('foo', image='foo', hostname='name.domain.tld', client=self.mock_client)
    opts = service._get_container_create_options({'image': 'foo'}, 1)
    assert (opts['hostname'] == 'name.domain.tld'), 'hostname'
    assert (not ('domainname' in opts)), 'domainname'