Exemplo n.º 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")
Exemplo n.º 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")  
Exemplo n.º 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")
Exemplo n.º 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")