def test_get_templates(self): with self.app.test_request_context('/'): result = templates.get_templates() self.assertEqual(result, dict(templates=[self.template_id]))
def _list(): return make_response(jsonify(get_templates()))