'History view should restrict access.'

def testHistoryView(self):

    self.client.get(u'/test_admin/admin/')
    self.client.post(u'/test_admin/admin/', self.adduser_login)
    response = self.client.get(u'/test_admin/admin/admin_views/article/1/history/')
    self.assertEqual(response.status_code, 403)
    self.client.get(u'/test_admin/admin/logout/')
    self.client.get(u'/test_admin/admin/')
    self.client.post(u'/test_admin/admin/', self.changeuser_login)
    response = self.client.get(u'/test_admin/admin/admin_views/article/1/history/')
    self.assertEqual(response.status_code, 200)
    RowLevelChangePermissionModel.objects.create(id=1, name=u'odd    id')
    RowLevelChangePermissionModel.objects.create(id=2, name=u'even    id')
    for login_dict in [self.super_login, self.changeuser_login, self.adduser_login, self.deleteuser_login]:
        self.client.post(u'/test_admin/admin/', login_dict)
        response = self.client.get(u'/test_admin/admin/admin_views/rowlevelchangepermissionmodel/1/history/')
        self.assertEqual(response.status_code, 403)
        response = self.client.get(u'/test_admin/admin/admin_views/rowlevelchangepermissionmodel/2/history/')
        self.assertEqual(response.status_code, 200)
        self.client.get(u'/test_admin/admin/logout/')
    for login_dict in [self.joepublic_login, self.no_username_login]:
        self.client.post(u'/test_admin/admin/', login_dict)
        response = self.client.get(u'/test_admin/admin/admin_views/rowlevelchangepermissionmodel/1/history/')
        self.assertEqual(response.status_code, 200)
        self.assertContains(response, u'login-form')
        response = self.client.get(u'/test_admin/admin/admin_views/rowlevelchangepermissionmodel/2/history/')
        self.assertEqual(response.status_code, 200)
        self.assertContains(response, u'login-form')
        self.client.get(u'/test_admin/admin/logout/')
