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)
def _delete(name): delete_template(name) return make_response("", 204, [])