コード例 #1
0
ファイル: test_types.py プロジェクト: wsenfuma/mopidy
    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
コード例 #2
0
ファイル: test_types.py プロジェクト: wsenfuma/mopidy
    def test_serialize_uses_original(self):
        cv = types.Path()
        path = types._ExpandedPath("original_path", "expanded_path")

        assert cv.serialize(path) == "original_path"
コード例 #3
0
ファイル: test_types.py プロジェクト: wsenfuma/mopidy
 def test_is_str(self):
     assert isinstance(types._ExpandedPath(b"/tmp", b"foo"), str)