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))
def test_record_does_not_exist(self): kennel = KennelDataModel(self.kennel_id, name=self.name, acronym=self.acronym) self.assertFalse(KennelDataModel.record_exists(kennel))
def test_record_exists(self): kennel = KennelDataModel(self.kennel_id, name=self.name, acronym=self.acronym) kennel.save() self.assertTrue(KennelDataModel.record_exists(kennel))