def METHOD_NAME():
    user = f.UserFactory(
        username='test_user',
        password='test_password',
    )
    # Make some tokens that won't expire soon
    not_expired_1 = RefreshToken.for_user(user)
    not_expired_2 = RefreshToken.for_user(user)
    not_expired_3 = RefreshToken()
    # Denylist fresh tokens
    not_expired_2.denylist()
    not_expired_3.denylist()
    # Make tokens with fake exp time that will expire soon
    fake_now = aware_utcnow() - api_settings.REFRESH_TOKEN_LIFETIME
    with patch('taiga.auth.tokens.aware_utcnow') as fake_aware_utcnow:
        fake_aware_utcnow.return_value = fake_now
        expired_1 = RefreshToken.for_user(user)
        expired_2 = RefreshToken()
    # Denylist expired tokens
    expired_1.denylist()
    expired_2.denylist()
    # Make another token that won't expire soon
    not_expired_4 = RefreshToken.for_user(user)
    # Should be certain number of outstanding tokens and denylisted
    # tokens
    assert OutstandingToken.objects.count() == 6
    assert DenylistedToken.objects.count() == 4
    call_command('flushexpiredtokens')
    # Expired outstanding *and* denylisted tokens should be gone
    assert OutstandingToken.objects.count() == 4
    assert DenylistedToken.objects.count() == 2
    assert (
        [i.jti for i in OutstandingToken.objects.order_by('id')] ==
        [not_expired_1['jti'], not_expired_2['jti'], not_expired_3['jti'], not_expired_4['jti']]
    )
    assert (
        [i.token.jti for i in DenylistedToken.objects.order_by('id')] ==
        [not_expired_2['jti'], not_expired_3['jti']]
    )