def testReverseUrl(self): self.createAnonRoute('/') self.assertEquals(pyroutes.reverse_url('foo'), '/')
def testReverseUrlRelativePath(self): self.createAnonRoute("/path") self.assertEquals("/myapp/path", pyroutes.reverse_url("foo"))
def testReverseUrl(self): self.createAnonRoute("/") self.assertEquals(pyroutes.reverse_url("foo"), "/")
def testReverseUrlAbsolutePath(self): self.createAnonRoute("/path") self.assertEquals("/path", pyroutes.reverse_url("foo", absolute_path=True))