Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes
MoinMoin._tests.test_wikisync.TestUnsafeSync Class Reference

List of all members.

Public Member Functions

def setup_method
def testBasicTagThings
def teardown_method

Public Attributes

 page

Detailed Description

Tests various things related to syncing. Note that it is not possible
    to create pages without cluttering page revision currently, so we have to use
    the testwiki. 

Definition at line 15 of file test_wikisync.py.


Member Function Documentation

Definition at line 20 of file test_wikisync.py.

00020 
00021     def setup_method(self, method):
00022         if not getattr(self.request.cfg, 'is_test_wiki', False):
00023             py.test.skip('This test needs to be run using the test wiki.')
00024         self.page = PageEditor(self.request, "FrontPage")

Definition at line 33 of file test_wikisync.py.

00033 
00034     def teardown_method(self, method):
00035         tags = TagStore(self.page)
00036         tags.clear()

Definition at line 25 of file test_wikisync.py.

00025 
00026     def testBasicTagThings(self):
00027         tags = TagStore(self.page)
00028         assert not tags.get_all_tags()
00029         tags.add(remote_wiki="foo", remote_rev=1, current_rev=2, direction=BOTH, normalised_name="FrontPage")
00030         tags = TagStore(self.page) # reload
00031         dummy = repr(tags.get_all_tags()) # this should not raise
00032         assert tags.get_all_tags()[0].remote_rev == 1


Member Data Documentation

Definition at line 23 of file test_wikisync.py.


The documentation for this class was generated from the following file: