Exemple #1
0
 def test_is_trained(self):
     o = NullObject()
     o.is_trained = True
     self.assertIsNone(model.requires_training_wheels(lambda x: None)(o))
Exemple #2
0
 def test_is_trained(self):
     o = NullObject()
     o.is_trained = True
     self.assertIsNone(model.requires_training_wheels(lambda x: None)(o))
Exemple #3
0
 def test_not_trained(self):
     o = NullObject()
     o.is_trained = False
     with self.assertRaises(TypeError):
         model.requires_training_wheels(lambda x: None)(o)
Exemple #4
0
 def test_not_trained(self):
     o = NullObject()
     o.is_trained = False
     with self.assertRaises(TypeError):
         model.requires_training_wheels(lambda x: None)(o)