'This test would fail if permission is checked on a view\'s
object when it has none'

def test_permission_required_no_object(self):

    request = self.factory.get(u'/')
    request.user = self.user
    request.user.add_obj_perm(u'change_post', self.post)
    view = NoObjectView.as_view()
    response = view(request)
    self.assertEqual(response.status_code, 302)
