~ubuntu-branches/ubuntu/oneiric/moin/oneiric-security

« back to all changes in this revision

Viewing changes to MoinMoin/_tests/test_PageEditor.py

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge
  • Date: 2010-03-30 12:55:34 UTC
  • mfrom: (0.1.17 sid)
  • Revision ID: james.westby@ubuntu.com-20100330125534-4c2ufc1rok24447l
Tags: 1.9.2-2ubuntu1
* Merge from Debian testing (LP: #521834). Based on work by Stefan Ebner.
  Remaining changes:
 - Remove python-xml from Suggests field, the package isn't anymore in
   sys.path.
 - Demote fckeditor from Recommends to Suggests; the code was previously
   embedded in moin, but it was also disabled, so there's no reason for us
   to pull this in by default currently. Note: This isn't necessary anymore
   but needs a MIR for fckeditor, so postpone dropping this change until
   lucid+1
* debian/rules:
  - Replace hardcoded python2.5 with python* and hardcore python2.6 for ln
* debian/control.in: drop versioned depends on cdbs

Show diffs side-by-side

added added

removed removed

Lines of Context:
147
147
 
148
148
    def deleteCaches(self):
149
149
        """ Force the wiki to scan the test page into the dicts """
150
 
        from MoinMoin import caching
151
 
        caching.CacheEntry(self.request, 'wikidicts', 'dicts_groups', scope='wiki').remove()
152
 
        if hasattr(self.request, 'dicts'):
153
 
            del self.request.dicts
154
 
        if hasattr(self.request.cfg, 'DICTS_DATA'):
155
 
            del self.request.cfg.DICTS_DATA
156
 
        self.request.pages = {}
 
150
        # New dicts does not require cache refresh.
157
151
 
158
152
    def deleteTestPage(self):
159
153
        """ Delete temporary page, bypass logs and notifications """
174
168
 
175
169
    def teardown_method(self, method):
176
170
        self.request.cfg.event_handlers = self.old_handlers
 
171
        nuke_page(self.request, u'AutoCreatedMoinMoinTemporaryTestPageFortestSave')
177
172
 
178
173
    def testSaveAbort(self):
179
174
        """Test if saveText() is interrupted if PagePreSave event handler returns Abort"""