Ejemplo n.º 1
0
    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