Пример #1
0
 def test_vendor_slugify(self):
     '''This tests that the vendor name is accurately converted to a slugfield upon saving.''' 
     test_vendor = Vendor(company = "test vendor")
     test_vendor.save()
     self.assertEquals(test_vendor.company_slug, "test-vendor")           
Пример #2
0
 def test_create_vendor_all(self):
     """This is a test for creating a new primer object, with only the all fields being entered"""
     test_vendor = Vendor(company = "test vendor")
     test_vendor.save()
     self.assertEquals(test_vendor.__unicode__(), "test vendor")