def test_error_has_useful_string_representation(self):
        error = spotify.LibError(0)
        self.assertEqual('%s' % error, 'No error')
        self.assertIsInstance('%s' % error, utils.text_type)

        error = spotify.LibError(1)
        self.assertEqual('%s' % error, 'Invalid library version')
dataset/ETHPy150Open mopidy/pyspotify/tests/test_error.py/LibErrorTest.test_error_has_useful_string_representation/original