def test_create_template(self):
     with self.app.test_request_context('/'):
         result = templates.create_template(self.template_id2,
                                            copy.copy(self.template2))
         self.assertEqual(result, None)
         result = templates.get_template(self.template_id2)
         self.assertEqual(result, self.template2)
示例#2
0
def _create(name):
    create_template(name, request.get_data())
    return make_response("", 201, [])