def tearDown(self):
     # cleanup Redis after tests
     TOKENS_CACHE.clear()
 def setUp(self):
     TOKENS_CACHE.clear()
     self.user = create_test_user()
     self.token, self.first_device = MultiToken.create_token(self.user)