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()