예제 #1
0
파일: test_path.py 프로젝트: zwl1671/mopidy
    def test_xdg_subsititution(self):
        expected = GLib.get_user_data_dir() + "/foo"
        result = path.expand_path("$XDG_DATA_DIR/foo")

        assert str(result) == expected
예제 #2
0
 def test_xdg_subsititution(self):
     self.assertEqual(
         GLib.get_user_data_dir() + b'/foo',
         path.expand_path(b'$XDG_DATA_DIR/foo'))