예제 #1
0
 def test_register_template_page_backwards_comptability(self):
     # Historically metaschema's were referenced by a slugified version
     # of their name.
     reg = self.draft.register(auth=self.auth, save=True)
     url = reg.web_url_for(
         'node_register_template_page',
         metaschema_id=_name_to_id(self.meta_schema.name),
     )
     res = self.app.get(url, auth=self.user.auth)
     assert_equal(res.status_code, http_status.HTTP_200_OK)
예제 #2
0
 def test_register_template_page_backwards_comptability(self):
     # Historically metaschema's were referenced by a slugified version
     # of their name.
     reg = self.draft.register(
         auth=self.auth,
         save=True
     )
     url = reg.web_url_for(
         'node_register_template_page',
         metaschema_id=_name_to_id(self.meta_schema.name),
     )
     res = self.app.get(url, auth=self.user.auth)
     assert_equal(res.status_code, http.OK)