示例#1
0
 def test_try_fspath_str_object(self):
     test_object = os.path.join('test', 'path')
     result = vlc.try_fspath(test_object)
     self.assertEqual(result, os.path.join('test', 'path'))
示例#2
0
 def test_try_fspath_incompatible_object(self):
     test_object = MagicMock()
     result = vlc.try_fspath(test_object)
     self.assertIs(result, test_object)