Package trac :: Package wiki :: Package tests :: Module wikisyntax

Module wikisyntax

source code

Functions
 
wiki_setup(tc) source code
 
wiki_teardown(tc) source code
 
wiki_setup_split(tc) source code
 
suite() source code
Variables
  TEST_CASES = ...
  RELATIVE_LINKS_TESTS = ...
  SPLIT_PAGE_NAMES_TESTS = ...
  SCOPED_LINKS_TESTS = ...

Imports: datetime, unittest, utc, WikiPage, formatter


Variables Details

TEST_CASES

Value:
u'''
============================== wiki: link resolver
wiki:TestPage
wiki:TestPage/
wiki:/TestPage
[wiki:/TestPage]
[wiki:/TestPage /TestPage]
wiki:"Space 1 23"
...

RELATIVE_LINKS_TESTS

Value:
u'''
============================== Relative to the project url
[//docs Documentation]
[//docs?param=1#fragment Documentation]
[//docs]
[//docs //docs]
[//docs?param=1#fragment]
[// Home]
...

SPLIT_PAGE_NAMES_TESTS

Value:
u'''
============================== Splitting relative links
[//WikiPage]
[/WikiPage]
[./WikiPage]
[../WikiPage]
[//WikiPage?param=1#fragment]
[/WikiPage?param=1#fragment]
...

SCOPED_LINKS_TESTS

Value:
u'''
============================== Scoped links for hierarchical pages
ThirdLevel
[wiki:ThirdLevel]
OtherThirdLevel
[wiki:OtherThirdLevel]
SecondLevel/OtherThirdLevel
[wiki:SecondLevel/OtherThirdLevel]
...