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