def test_build_urlpath_case2(self): lst = ['example', ('key1', 'value1'), ('key2', 'value2')] path = util.build_urlpath(lst) self.assertEqual(path, 'example/key1:value1/key2:value2')
def test_build_urlpath_case1(self): lst = ['path', 'to', 'hoge'] path = util.build_urlpath(lst) self.assertEqual(path, 'path/to/hoge')