Пример #1
0
 def test_without_label_vector(self):
     o = NullObject()
     o._descriptive_attributes = ["label_vector"]
     o.label_vector = None
     with self.assertRaises(TypeError):
         model.requires_model_description(lambda x: None)(o)
Пример #2
0
 def test_without_label_vector(self):
     o = NullObject()
     o._descriptive_attributes = ["label_vector"]
     o.label_vector = None
     with self.assertRaises(TypeError):
         model.requires_model_description(lambda x: None)(o)
Пример #3
0
 def test_with_label_vector(self):
     o = NullObject()
     o._descriptive_attributes = ["label_vector"]
     o.label_vector = ""
     self.assertIsNone(model.requires_model_description(lambda x: None)(o))
Пример #4
0
 def test_with_label_vector(self):
     o = NullObject()
     o._descriptive_attributes = ["label_vector"]
     o.label_vector = ""
     self.assertIsNone(model.requires_model_description(lambda x: None)(o))