def test_object_container_can_be_retrieved_by_name(db): user = User.objects.create(username='******') container = Container.objects.create( name='some-container', page_object=user) retrieved_container = Container.get_container_by_name(container.name, user) assert container.id == retrieved_container.id
def test_object_container_can_be_retrieved_by_name(db): user = User.objects.create(username='******') container = Container.objects.create(name='some-container', page_object=user) retrieved_container = Container.get_container_by_name(container.name, user) assert container.id == retrieved_container.id
def test_can_be_retrieved_by_name(self): user = User.objects.create(username='******') container = Container.objects.create(name='some-container', page_object=user) retrieved_container = Container.get_container_by_name( container.name, user) self.assertEquals(container.id, retrieved_container.id)
def test_can_be_retrieved_by_name(self): user = User.objects.create(username='******') container = Container.objects.create(name='some-container', page_object=user) retrieved_container = Container.get_container_by_name(container.name, user) self.assertEquals(container.id, retrieved_container.id)
def test_can_be_retrieved_by_name(self): container = Container.objects.create(name='some-container') retrieved_container = Container.get_container_by_name(container.name) self.assertEquals(container.id, retrieved_container.id)
def test_container_can_be_retrieved_by_name(request_context, db): container = Container.objects.create(name='some-container') retrieved_container = Container.get_container_by_name(container.name) assert container.id == retrieved_container.id