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'))
def test_try_fspath_incompatible_object(self): test_object = MagicMock() result = vlc.try_fspath(test_object) self.assertIs(result, test_object)