def test_get_container_create_options_with_name_option(self):
    service = Service('foo', image='foo', client=self.mock_client, container_name='foo1')
    name = 'the_new_name'
    opts = service._get_container_create_options({'name': name}, 1, one_off=OneOffFilter.only)
    assert (opts['name'] == name)
def test_get_container_create_options_with_name_option(self):
    service = Service('foo', image='foo', client=self.mock_client, container_name='foo1')
    name = 'the_new_name'
    opts = service._get_container_create_options({'name': name}, 1, one_off=OneOffFilter.only)
    assert (opts['name'] == name)