'Inactive user login explicitly allowed.'

def test_logged_in_inactive_allow(self):

    request = self.rf.get('/foo')
    user = self.user_model.objects.get(username='testuser2')
    user.is_active = False
    request.user = user
    view = login_required(simple_view, only_active=False)
    response = view(request)
    eq_(200, response.status_code)
