def test_stores_both_expanded_and_original_path(self): original = "~" expanded = "expanded_path" result = types._ExpandedPath(original, expanded) assert result == expanded assert result.original == original
def test_serialize_uses_original(self): cv = types.Path() path = types._ExpandedPath("original_path", "expanded_path") assert cv.serialize(path) == "original_path"
def test_is_str(self): assert isinstance(types._ExpandedPath(b"/tmp", b"foo"), str)