예제 #1
0
 def test_ends_with_json(self):
     eq_(relative_url('a/b/.json'), self.url + u'/a/b/.json')
     eq_(relative_url('a', '/b.json'), self.url + u'/a/b.json')
예제 #2
0
 def test_normal(self):
     eq_(relative_url(), self.url + u'/.json')
     eq_(relative_url('a'), self.url + u'/a/.json')
     eq_(relative_url('a', 'b'), self.url + u'/a/b/.json')