'Inactive user is denied access.'

def test_logged_in_inactive(self):

    request = self.rf.get('/foo')
    user = self.user_model.objects.get(username='admin')
    user.is_active = False
    request.user = user
    view = permission_required('perm')(simple_view)
    response = view(request)
    eq_(403, response.status_code)
