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
Example #2
0
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
Example #3
0
    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)
Example #5
0
 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
Example #7
0
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
 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)