def test_participants(self): single = SingleFactory() groups = [GroupFactory() for i in xrange(3)] single.groups.add(*groups) single.save() edition = EditionFactory(single=single) assert len(edition.participants()) == 3
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
def test_get_absolute_url(self, client): factory = SingleFactory() response = client.get(factory.get_absolute_url()) assert response.status_code == 200