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
 
wiki_setup_safe_interwiki(tc) source code
 
suite() source code
Variables
  TEST_CASES = ...
  RELATIVE_LINKS_TESTS = ...
  SPLIT_PAGE_NAMES_TESTS = ...
  SCOPED_LINKS_TESTS = ...
  SAFE_INTERWIKI_TESTS = ...
  __package__ = 'trac.wiki.tests'

Imports: unittest, datetime_now, utc, WikiPage, formatter


Variables Details

TEST_CASES

Value:
u'''
============================== wiki: link resolver
wiki:TestPage
wiki:TestPage/
wiki:/TestPage
[wiki:/TestPage]
[wiki:/TestPage ]
[wiki:/TestPage​]
...

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]
...

SAFE_INTERWIKI_TESTS

Value:
u'''
============================== InterWiki with safe_schemes
This is the original MeatBall:InterMapTxt wiki page.

Checkout the [tsvn:http://svn.edgewall.com/repos/trac Trac Repository]\
.

complex link complex:a:test with positional arguments.
...