Exemplo n.º 1
0
 def test_get_absolute_url(self, client):
     single = SingleFactory()
     edition = EditionFactory(single=single)
     response = client.get(edition.get_absolute_url())
     assert edition.get_absolute_url() == single.get_absolute_url()
     assert response.status_code == 200
Exemplo n.º 2
0
 def test_get_absolute_url(self, client):
     factory = SingleFactory()
     response = client.get(factory.get_absolute_url())
     assert response.status_code == 200