def get(self, uri, *args, **kwargs): req = self.factory.get(uri, *args, **kwargs) req.auth = self.auth from ccui.core.api import url_final_integer return self.view(req, url_final_integer(uri))
def check(self, url, expected): from ccui.core.api import url_final_integer self.assertEqual(url_final_integer(url), expected)