Пример #1
0
 def test_smart_app_user_init(self):
     obj1 = user_model.User(self.test_id, self.test_message, None, self.test_values, self.test_descriptions,
                                    self.test_parametrizer_cls)
     obj2 = user_model.User(self.test_id, self.test_message, None, self.test_values, self.test_descriptions,
                                    self.test_parametrizer_cls, True)
     self.assertTrue(len(obj1.fields) > 0)
     self.assertTrue(obj1.id == self.test_id)
     self.assertTrue(not obj1.do_not_save)
     self.assertTrue(obj2.load_error)
Пример #2
0
 def test_smart_app_user_parametrizer(self):
     obj1 = user_model.User(self.test_id, self.test_message, None,
                            self.test_values, self.test_descriptions,
                            self.test_parametrizer_cls)
     self.assertTrue(obj1.parametrizer == {})
Пример #3
0
 def test_smart_app_user_fields(self):
     obj1 = user_model.User(self.test_id, self.test_message, None,
                            self.test_values, self.test_descriptions,
                            self.test_parametrizer_cls)
     self.assertTrue(len(obj1.fields) == 13)
     self.assertTrue(isinstance(obj1.fields[0], Field))