def test_customer_association(self):
    ProjectContact.objects.create(project=self.project, contact=self.contact, association=ProjectContact.CUSTOMER)
    self.assertEquals(1, len(self.contact.projects.all()))
    self.assertEquals(1, len(self.project.contacts.all()))
    pc = ProjectContact.objects.get(project=self.project)
    self.assertEquals(ProjectContact.CUSTOMER, pc.association)
def test_customer_association(self):
    ProjectContact.objects.create(project=self.project, contact=self.contact, association=ProjectContact.CUSTOMER)
    self.assertEquals(1, len(self.contact.projects.all()))
    self.assertEquals(1, len(self.project.contacts.all()))
    pc = ProjectContact.objects.get(project=self.project)
    self.assertEquals(ProjectContact.CUSTOMER, pc.association)