def test_delete_template(self):
     with self.app.test_request_context('/'):
         result = templates.delete_template(self.template_id)
         self.assertEqual(result, None)
         self.assertRaises(exc.NotFound,
                           templates.get_template, self.template_id)
示例#2
0
def _delete(name):
    delete_template(name)
    return make_response("", 204, [])