def test_create_contact_minimal(self): """This is a test for creating a new primer object, with only the minimum fields being entered""" test_contact = Contact(first_name="Steve", last_name="TestContact") test_contact.save() self.assertEquals(test_contact.__unicode__(), "Steve TestContact")
def test_contact_slugify(self): test_contact = Contact(first_name="Steve", last_name="TestContact") test_contact.save() self.assertEquals(test_contact.__unicode__(), "Steve TestContact") self.assertEquals(test_contact.contactID, "steve-testcontact")