tmpdir = local('/tmp/pytest-of-root/pytest-11/test_query_open_subtitles0') def test_query_open_subtitles(tmpdir): filename = tmpdir.join('Drive (2011) BDRip XviD-COCAIN.avi').ensure() with patch('ss.ServerProxy', autospec=True) as rpc_mock: with patch('ss.calculate_hash_for_file', autospec=True) as hash_mock: hash_mock.return_value = '13ab' rpc_mock.return_value = server = MagicMock(name='MockServer') server.LogIn.return_value = dict(token='TOKEN') server.SearchSubtitles.return_value = dict( data=[{'SubFileName': 'movie.srt'}]) > search_results = ss.query_open_subtitles(str(filename), 'eng') tests/test_ss.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ss.py:82: in query_open_subtitles guessit_query = obtain_guessit_query(movie_filename, language) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ movie_filename = '/tmp/pytest-of-root/pytest-11/test_query_open_subtitles0/Drive (2011) BDRip XviD-COCAIN.avi' language = 'eng' def obtain_guessit_query(movie_filename, language): > guess = guessit.guess_file_info(os.path.basename(movie_filename), info=['filename']) E AttributeError: module 'guessit' has no attribute 'guess_file_info' ss.py:28: AttributeError