'Inactive user login not allowed by default.'

def test_logged_in_inactive(self):

    request = RequestFactory().get('/foo')
    request.user = UserFactory(is_active=False)
    view = login_required(simple_view)
    response = view(request)
    eq_(302, response.status_code)
