Example #1
0
 def test_experiment_DELETE_nonexistent_experiment(self):
     self.req.swagger_data = {'appid': 1, 'expid': 2}
     print(self.req.matchdict)
     httpExperiments = Experiments(self.req)
     response = httpExperiments.experiment_DELETE()
     assert response.status_code == 400
     assert response.json == None
Example #2
0
 def test_experiment_DELETE(self):
     self.req.swagger_data = {'appid': 1, 'expid': 1}
     httpExperiments = Experiments(self.req)
     response = httpExperiments.experiment_DELETE()
     assert response == {}