

def test_load_raises_exception_on_error_even_if_already_loaded(self, is_loaded_mock, time_mock):
    is_loaded_mock.return_value = True
    foo = Foo(self.session)
    foo.error = spotify.ErrorType.OTHER_PERMANENT
    with self.assertRaises(spotify.Error):
        time_mock.load()

dataset/ETHPy150Open mopidy/pyspotify/tests/test_loadable.py LoadableTest.test_load_raises_exception_on_error_even_if_already_loaded/VarMisuse@51/84 `foo`->`time_mock`