Esempio n. 1
0
 def test_save_same_record_twice(self):
     start = KennelDataModel('kennel1',
                             name=self.name,
                             acronym=self.acronym)
     start.save()
     start.save()
     self.assertTrue(KennelDataModel.record_exists(start))
Esempio n. 2
0
 def test_record_does_not_exist(self):
     kennel = KennelDataModel(self.kennel_id,
                              name=self.name,
                              acronym=self.acronym)
     self.assertFalse(KennelDataModel.record_exists(kennel))
Esempio n. 3
0
 def test_record_exists(self):
     kennel = KennelDataModel(self.kennel_id,
                              name=self.name,
                              acronym=self.acronym)
     kennel.save()
     self.assertTrue(KennelDataModel.record_exists(kennel))