Back to index

moin  1.9.0~rc2
Public Member Functions | Static Public Attributes | Private Member Functions
MoinMoin._tests.test_wikiutil.TestRelativeTools Class Reference

List of all members.

Public Member Functions

def test_abs_pagename
def test_rel_pagename

Static Public Attributes

list tests

Private Member Functions

def _check_abs_pagename
def _check_rel_pagename

Detailed Description

Definition at line 938 of file test_wikiutil.py.


Member Function Documentation

def MoinMoin._tests.test_wikiutil.TestRelativeTools._check_abs_pagename (   self,
  current_page,
  relative_page,
  absolute_page 
) [private]

Definition at line 956 of file test_wikiutil.py.

00956 
00957     def _check_abs_pagename(self, current_page, relative_page, absolute_page):
00958         assert absolute_page == wikiutil.AbsPageName(current_page, relative_page)

Here is the caller graph for this function:

def MoinMoin._tests.test_wikiutil.TestRelativeTools._check_rel_pagename (   self,
  current_page,
  absolute_page,
  relative_page 
) [private]

Definition at line 963 of file test_wikiutil.py.

00963 
00964     def _check_rel_pagename(self, current_page, absolute_page, relative_page):
00965         assert relative_page == wikiutil.RelPageName(current_page, absolute_page)
00966 

Here is the caller graph for this function:

Definition at line 952 of file test_wikiutil.py.

00952 
00953     def test_abs_pagename(self):
00954         for (current_page, relative_page), absolute_page in self.tests:
00955             yield self._check_abs_pagename, current_page, relative_page, absolute_page

Here is the call graph for this function:

Definition at line 959 of file test_wikiutil.py.

00959 
00960     def test_rel_pagename(self):
00961         for (current_page, relative_page), absolute_page in self.tests:
00962             yield self._check_rel_pagename, current_page, absolute_page, relative_page

Here is the call graph for this function:


Member Data Documentation

Initial value:
[
        # test                      expected output
        # CHILD_PREFIX
        (('MainPage', '/SubPage1'), 'MainPage/SubPage1'),
        (('MainPage', '/SubPage1/SubPage2'), 'MainPage/SubPage1/SubPage2'),
        (('MainPage/SubPage1', '/SubPage2/SubPage3'), 'MainPage/SubPage1/SubPage2/SubPage3'),
        (('', '/OtherMainPage'), 'OtherMainPage'), # strange
        # PARENT_PREFIX
        (('MainPage/SubPage', '../SisterPage'), 'MainPage/SisterPage'),
        (('MainPage/SubPage1/SubPage2', '../SisterPage'), 'MainPage/SubPage1/SisterPage'),
        (('MainPage/SubPage1/SubPage2', '../../SisterPage'), 'MainPage/SisterPage'),
        (('MainPage', '../SisterPage'), 'SisterPage'), # strange
    ]

Definition at line 939 of file test_wikiutil.py.


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