Beispiel #1
0
 def test_sanity_check_ok_4(self):
     d = Definition({'register': 1})
     d.set_requiered_field('name')
     self.assertEqual(d.sanity_check_ok(), False)
Beispiel #2
0
 def test_sanity_check_ok_3(self):
     d = Definition({'register': 1, 'name': 'test'})
     d.set_requiered_field('name')
     self.assertEqual(d.sanity_check_ok(), True)