changeset 6042:ca4a1bfdf2db

events tests: use PageEditor instances, like in the production code
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 01 Mar 2014 19:07:03 +0100
parents a3900f360ad0
children 1306560f158e
files MoinMoin/events/_tests/test_events.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/events/_tests/test_events.py	Sat Mar 01 15:42:20 2014 +0100
+++ b/MoinMoin/events/_tests/test_events.py	Sat Mar 01 19:07:03 2014 +0100
@@ -11,7 +11,7 @@
 import MoinMoin.events as events
 import MoinMoin.events.notification as notification
 import MoinMoin.events.jabbernotify as jabbernotify
-from MoinMoin.Page import Page
+from MoinMoin.PageEditor import PageEditor
 from MoinMoin.user import User
 
 def test_get_handlers(request):
@@ -42,7 +42,7 @@
     assert events.get_subscribable_events()
 
 def test_page_change_message(request):
-    page = Page(request, "FrontPage")
+    page = PageEditor(request, "FrontPage")
 
     print "Provided with a dumb change type argument, this should raise an exception!"
     py.test.raises(notification.UnknownChangeType, notification.page_change_message,