Beispiel #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")
Beispiel #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")  
Beispiel #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")
Beispiel #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")