def test_filepath(self): r = Cache() base = 'http://www.abc.org/' in1 = base + 'xyz' out = r.filepath(in1) # ./xyz assert out.endswith('xyz'), out