Beispiel #1
0
    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
Beispiel #2
0
    def test_serialize_uses_original(self):
        cv = types.Path()
        path = types._ExpandedPath("original_path", "expanded_path")

        assert cv.serialize(path) == "original_path"
Beispiel #3
0
 def test_is_str(self):
     assert isinstance(types._ExpandedPath(b"/tmp", b"foo"), str)