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)
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)