def test_create_complete(self):
     predictionmodel = PredictionModel(self.minimum_data)
     predictionmodel.add_custom_data(self.additional_data)
     eq_('alias/project', predictionmodel.project)
     eq_('mymodel', predictionmodel.name)
     eq_('active', predictionmodel.status)
     eq_(30, predictionmodel.interval)
     eq_(4.533, predictionmodel.mean)
     eq_([4.5, 3, 5], predictionmodel.cov)
Ejemplo n.º 2
0
 def test_create_complete(self):
     predictionmodel = PredictionModel(self.minimum_data)
     predictionmodel.add_custom_data(self.additional_data)
     eq_('alias/project', predictionmodel.project)
     eq_('mymodel', predictionmodel.name)
     eq_('active', predictionmodel.status)
     eq_(30, predictionmodel.interval)
     eq_(4.533, predictionmodel.mean)
     eq_([4.5, 3, 5], predictionmodel.cov)
 def test_to_primitive(self):
     predictionmodel = PredictionModel(self.minimum_data)
     predictionmodel.add_custom_data(self.additional_data)
     primitive = predictionmodel.to_primitive()
 def test_validate_complete_data(self):
     predictionmodel = PredictionModel(self.minimum_data)
     predictionmodel.add_custom_data(self.additional_data)
     predictionmodel.validate()
 def test_validate_minimum_data(self):
     predictionmodel = PredictionModel(self.minimum_data)
     predictionmodel.validate()
Ejemplo n.º 6
0
 def test_to_primitive(self):
     predictionmodel = PredictionModel(self.minimum_data)
     predictionmodel.add_custom_data(self.additional_data)
     primitive = predictionmodel.to_primitive()
Ejemplo n.º 7
0
 def test_validate_complete_data(self):
     predictionmodel = PredictionModel(self.minimum_data)
     predictionmodel.add_custom_data(self.additional_data)
     predictionmodel.validate()
Ejemplo n.º 8
0
 def test_validate_minimum_data(self):
     predictionmodel = PredictionModel(self.minimum_data)
     predictionmodel.validate()
Ejemplo n.º 9
0
 def test_tablename(self):
     eq_('model', PredictionModel.__tablename__)
     predictionmodel = PredictionModel(self.minimum_data)
     eq_('model', predictionmodel.__tablename__)
Ejemplo n.º 10
0
 def test_key(self):
     predictionmodel = PredictionModel(self.minimum_data)
     eq_('alias/project-30-mymodel', predictionmodel.__key__)
Ejemplo n.º 11
0
 def test_create_minimum_data(self):
     predictionmodel = PredictionModel(self.minimum_data)
     eq_('alias/project', predictionmodel.project)
     eq_('mymodel', predictionmodel.name)
     eq_(30, predictionmodel.interval)
     eq_('active', predictionmodel.status)