Permalink
Browse files

all tests pass/ but needs more tests for inherited page permissions

  • Loading branch information...
fivethreeo committed Dec 30, 2010
1 parent d27b376 commit 735a7e4d18290aaf9bc6256e738163d1ac582e41
Showing with 4 additions and 2 deletions.
  1. +4 −2 cms/tests/permmod.py
View
@@ -714,12 +714,14 @@ def test_19_remove_plugin_page_under_moderation(self):
# there should only be a public plugin - since the draft has been deleted
self.assertEquals(CMSPlugin.objects.all().count(), 1)
-
+
# reload the page as it's moderator value should have been set in pageadmin.remove_plugin
page = self.reload_page(page)
+
+ self.assertEqual(page.moderator_state, Page.MODERATOR_NEED_APPROVEMENT)
# login as super user and approve/publish the page
- self.login_user(self.user_master)
+ self.login_user(self.user_super)
page = self.publish_page(page, approve=True)
# there should now be 0 plugins

0 comments on commit 735a7e4

Please sign in to comment.