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