def setUp(self): self._email = None user = os.getenv('UNIFLOW_USER') self.assertNotEqual(None, user) self._email = '{}@students.calvin.edu'.format(user) with app.app_context(): self._saved_credentials = oauth._get_credentials(self._email) oauth.delete_credentials(self._email, revoke=False)
def test_delete_token(self): with app.app_context(): oauth.delete_credentials(self._email, revoke=False) self.assertIsNone(oauth.get_token(self._email))