def test_auth_generator_is_called(self):
        auth_generator = mock.MagicMock()
        pool.Pool(None, num_processes=1, auth_generator=auth_generator)
        assert auth_generator.called is True
        auth_generator.assert_called_once_with(mock.ANY)
Remove the observer.
dataset/ETHPy150Open sigmavirus24/requests-toolbelt/tests/threaded/test_pool.py/TestPool.test_auth_generator_is_called--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_defer.py/LogTestCase.tearDown