@contextmanager
    def no_auth(self):
        old_basic_auth, self.auth = self.auth, None
        old_token_auth = self.headers.pop('Authorization', None)

        yield

        self.auth = old_basic_auth
        if old_token_auth:
            self.headers['Authorization'] = old_token_auth
Test the redis dict implementation.
dataset/ETHPy150Open sigmavirus24/github3.py/github3/session.py/GitHubSession.no_auth--crossover with--dataset/ETHPy150Open lethain/Redis-Python-Datastructures/redis_ds/tests.py/TestRedisDatastructures.test_redis_dict