Commits

Kai Diefenbach  committed 5bfbf97

All tests pass

  • Participants
  • Parent commits b0dc083

Comments (0)

Files changed (1)

File permissions/tests.py

         """
         """
         # Permission
-        self.assertEqual(self.permission.__unicode__(), "View (view)")
+        self.assertEqual(self.permission.__unicode__(), u"View (view)")
 
         # ObjectPermission
         permissions.utils.grant_permission(self.page_1, self.role_1, self.permission)
         opr = ObjectPermission.objects.get(permission=self.permission, role=self.role_1)
-        self.assertEqual(opr.__unicode__(), "View / Role 1 / flat page - 1")
+        self.assertEqual(opr.__unicode__(), u"View / %s / flat page - %s" % (self.role_1, self.page_1.id))
 
         # ObjectPermissionInheritanceBlock
         permissions.utils.add_inheritance_block(self.page_1, self.permission)
         opb = ObjectPermissionInheritanceBlock.objects.get(permission=self.permission)
 
-        self.assertEqual(opb.__unicode__(), "View (view) / flat page - 1")
+        self.assertEqual(opb.__unicode__(), u"View (view) / flat page - %s" % (self.page_1.id))
 
     def test_reset(self):
         """