Esempio n. 1
0
 def test_process_without_json(self):
     launcher = Launcher()
     request = RequestMock()
     self.assertFalse(launcher.process(request))
     self.assertEqual(launcher.error, 400)
def launch():
    launch = Launcher()
    if launch.process(request):
        return jsonify(launch.result)
    else:
        abort(launch.error)