Beispiel #1
0
 def test_experiments_GET_one(self):
     httpExperiments = Experiments(self.req)
     self.req.swagger_data = {'appid': 1, 'expid': 1}
     response = httpExperiments.experiments_GET_one()
     expected = Experiment.get(1).as_dict()
     expected['status'] = 'running'
     assert response == expected
Beispiel #2
0
 def test_experiments_GET_one_nonexistent_experiment(self):
     httpExperiments = Experiments(self.req)
     self.req.swagger_data = {'appid': 1, 'expid': 2}
     response = httpExperiments.experiments_GET_one()
     expected = 400
     assert response.status_code == expected