Beispiel #1
0
    def test_remove_token_store(self):
        auth.DEFAULT_TOKEN_FILE = 'test.dat'
        with open(auth.DEFAULT_TOKEN_FILE, 'w') as fh:
            fh.write('test')

        reset_default_token_store()
        self.assertFalse(os.path.exists(auth.DEFAULT_TOKEN_FILE))
Beispiel #2
0
    def test_remove_token_store(self):
        auth.DEFAULT_TOKEN_FILE = 'test.dat'
        with open(auth.DEFAULT_TOKEN_FILE, 'w') as fh:
            fh.write('test')

        reset_default_token_store()
        self.assertFalse(os.path.exists(auth.DEFAULT_TOKEN_FILE))
Beispiel #3
0
def reset_token_store():
    """
    Deletes the default token store
    """
    auth.reset_default_token_store()
Beispiel #4
0
def reset_token_store():
    """
    Deletes the default token store
    """
    auth.reset_default_token_store()