(self)
| 153 | self.assertTrue(fi.write.called) |
| 154 | |
| 155 | def test_cache_handler(self): |
| 156 | scope = "playlist-modify-private" |
| 157 | tok = _make_fake_token(1, 1, scope) |
| 158 | |
| 159 | spot = _make_oauth(scope, cache_handler=MemoryCacheHandler()) |
| 160 | spot.cache_handler.save_token_to_cache(tok) |
| 161 | cached_tok = spot.cache_handler.get_cached_token() |
| 162 | |
| 163 | self.assertEqual(tok, cached_tok) |
| 164 | |
| 165 | |
| 166 | class TestSpotifyOAuthGetAuthorizeUrl(unittest.TestCase): |
nothing calls this directly
no test coverage detected