def test_post_to_route(self):
     '''Test POST to route works'''
     with patch.dict('panoptes_aggregation.routes.extractors.extractors',
                     mock_extractors_dict):
         with routes.make_application().test_client() as client:
             response = client.post('/extractors/question_extractor')
             self.assertEqual(response.status_code, 200)
 def setUp(self):
     self.application = routes.make_application()
     self.ME = routes.MyEncoder()