@authenticated_user_fixtures
def test_authenticated_user_calls_get_user(authn_policy, get_user):
    request = testing.DummyRequest()
    authn_policy.authenticated_userid.return_value = 'userid'

    accounts.authenticated_user(request)

    get_user.assert_called_once_with('userid', request)
Implement L{IReactorFDSet.getWriters}.
dataset/ETHPy150Open hypothesis/h/h/accounts/test/__init___test.py/test_authenticated_user_calls_get_user--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/internet/kqreactor.py/KQueueReactor.getWriters