'This test would fail if permission is checked **after** view is
actually resolved.'

def test_permission_required(self):

    request = self.factory.get(u'/')
    request.user = self.user
    request.user.add_obj_perm(u'change_post', self.post)
    view = TestView.as_view(object=self.post)
    with self.assertRaises(DatabaseRemovedError):
        view(request)
