def test_collect_distribution_with_cyclic_references(self):
    '\n        Test that a distribution with cyclic references only collects each email once,\n        and without looping infinitely.\n        '
    test_emails = self.cyclic_disti1.collect_email_addresses()
    self.assertEqual(len(test_emails), 2)
    self.assertSetEqual(self.all_emails, set(test_emails))
    test_emails = self.cyclic_disti2.collect_email_addresses()
    self.assertEqual(len(test_emails), 2)
    self.assertSetEqual(self.all_emails, set(test_emails))
Test that a distribution with cyclic references only collects each email once,
and without looping infinitely.
def test_collect_distribution_with_cyclic_references(self):
    '\n        Test that a distribution with cyclic references only collects each email once,\n        and without looping infinitely.\n        '
    test_emails = self.cyclic_disti1.collect_email_addresses()
    self.assertEqual(len(test_emails), 2)
    self.assertSetEqual(self.all_emails, set(test_emails))
    test_emails = self.cyclic_disti2.collect_email_addresses()
    self.assertEqual(len(test_emails), 2)
    self.assertSetEqual(self.all_emails, set(test_emails))