Пример #1
0
 def test_update_searchable_acronym(self):
     k = KennelDataModel(self.kennel_id,
                         name=self.name,
                         acronym=self.acronym)
     k.save()
     new_acronym = 'CHEH3'
     k.add_update_action('acronym', 'set', new_acronym)
     k.update()
     k.refresh()
     self.assertEqual(k.searchable_acronym, k.searchable_value(new_acronym))
Пример #2
0
 def test_update_searchable_name(self):
     k = KennelDataModel(self.kennel_id,
                         name=self.name,
                         acronym=self.acronym)
     k.save()
     new_name = 'Cheese'
     k.add_update_action('name', 'set', new_name)
     k.update()
     k.refresh()
     self.assertEqual(k.searchable_name, k.searchable_value(new_name))