예제 #1
0
 def testReverseUrl(self):
     self.createAnonRoute('/')
     self.assertEquals(pyroutes.reverse_url('foo'), '/')
예제 #2
0
 def testReverseUrl(self):
     self.createAnonRoute('/')
     self.assertEquals(pyroutes.reverse_url('foo'), '/')
예제 #3
0
 def testReverseUrlRelativePath(self):
     self.createAnonRoute("/path")
     self.assertEquals("/myapp/path", pyroutes.reverse_url("foo"))
예제 #4
0
 def testReverseUrl(self):
     self.createAnonRoute("/")
     self.assertEquals(pyroutes.reverse_url("foo"), "/")
예제 #5
0
 def testReverseUrlAbsolutePath(self):
     self.createAnonRoute("/path")
     self.assertEquals("/path", pyroutes.reverse_url("foo", absolute_path=True))