Example #1
0
 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")
Example #2
0
 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")  
Example #3
0
 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")
Example #4
0
 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")