def test_path_check_ok(self): p = Path('/this/is/a/path') self.assertEqual('/this/is/a/path', p.to_string())
def test_path_remove_prefix_no_prefix(self): p = Path('/this/is/a/path/with/a/prefix') p.remove_prefix('/that/is/a/path') self.assertEqual(p.to_string(), '/this/is/a/path/with/a/prefix')