def setUp(self):
    self.test1 = EmailAddress.objects.create(email_address='example@example.com')
    self.test2 = EmailAddress.objects.create(email_address='example@example.com')
    self.all_emails = set([self.test1, self.test2])
    self.disti = Distribution.objects.create(name='Test Disti')
    self.disti.email_addresses.add(self.test1, self.test2)
    self.dupe_disti = Distribution.objects.create(name='Dupe Disti')
    self.dupe_disti.email_addresses.add(self.test1, self.test2)
    self.dupe_disti.distributions.add(self.disti)
    self.self_disti = Distribution.objects.create(name='Self Disti')
    self.self_disti.email_addresses.add(self.test1)
    self.self_disti.distributions.add(self.self_disti)
    self.cyclic_disti1 = Distribution.objects.create(name='Cyclic Disti 1')
    self.cyclic_disti1.email_addresses.add(self.test1)
    self.cyclic_disti2 = Distribution.objects.create(name='Cyclic Disti 2')
    self.cyclic_disti2.email_addresses.add(self.test2)
    self.cyclic_disti1.distributions.add(self.cyclic_disti2)
    self.cyclic_disti2.distributions.add(self.cyclic_disti1)
def setUp(self):
    self.test1 = EmailAddress.objects.create(email_address='example@example.com')
    self.test2 = EmailAddress.objects.create(email_address='example@example.com')
    self.all_emails = set([self.test1, self.test2])
    self.disti = Distribution.objects.create(name='Test Disti')
    self.disti.email_addresses.add(self.test1, self.test2)
    self.dupe_disti = Distribution.objects.create(name='Dupe Disti')
    self.dupe_disti.email_addresses.add(self.test1, self.test2)
    self.dupe_disti.distributions.add(self.disti)
    self.self_disti = Distribution.objects.create(name='Self Disti')
    self.self_disti.email_addresses.add(self.test1)
    self.self_disti.distributions.add(self.self_disti)
    self.cyclic_disti1 = Distribution.objects.create(name='Cyclic Disti 1')
    self.cyclic_disti1.email_addresses.add(self.test1)
    self.cyclic_disti2 = Distribution.objects.create(name='Cyclic Disti 2')
    self.cyclic_disti2.email_addresses.add(self.test2)
    self.cyclic_disti1.distributions.add(self.cyclic_disti2)
    self.cyclic_disti2.distributions.add(self.cyclic_disti1)