Package trac :: Package wiki :: Package tests :: Module macros

Module macros

source code

Functions
 
add_pages(tc, names) source code
 
titleindex_teardown(tc) source code
 
titleindex2_setup(tc) source code
 
titleindex3_setup(tc) source code
 
titleindex4_setup(tc) source code
 
titleindex5_setup(tc) source code
 
suite() source code
Variables
  IMAGE_MACRO_TEST_CASES = ...
  TITLEINDEX1_MACRO_TEST_CASES = ...
  TITLEINDEX2_MACRO_TEST_CASES = ...
  TITLEINDEX3_MACRO_TEST_CASES = ...
  TITLEINDEX4_MACRO_TEST_CASES = ...
  TITLEINDEX5_MACRO_TEST_CASES = ...
  __package__ = 'trac.wiki.tests'

Imports: datetime, unittest, utc, WikiPage, formatter


Variables Details

IMAGE_MACRO_TEST_CASES

Value:
u'''
============================== source: Image, no other arguments
[[Image(source:« test ».png)]]
------------------------------
<p>
<a style="padding:0; border:none" href="/browser/%C2%AB%20test%C2%A0%C\
2%BB.png"><img src="/browser/%C2%AB%20test%C2%A0%C2%BB.png?format=raw"\
 alt="source:« test ».png" title="source:« test ».png" /></a>
...

TITLEINDEX1_MACRO_TEST_CASES

Value:
u'''
============================== TitleIndex, default format
[[TitleIndex()]]
------------------------------
<p>
</p><div class="titleindex"><ul><li><a href="/wiki/WikiStart">WikiStar\
t</a></li></ul></div><p>
</p>
...

TITLEINDEX2_MACRO_TEST_CASES

Value:
u'''
============================== TitleIndex, default format
[[TitleIndex()]]
------------------------------
<p>
</p><div class="titleindex"><ul><li><a href="/wiki/WikiEnd">WikiEnd</a\
></li><li><a href="/wiki/WikiStart">WikiStart</a></li></ul></div><p>
</p>
...

TITLEINDEX3_MACRO_TEST_CASES

Value:
u'''
============================== TitleIndex, group format
[[TitleIndex(Wiki,format=group)]]
------------------------------
<p>
</p><div class="titleindex"><ul><li><strong>Wiki</strong><ul><li><stro\
ng>End</strong><ul><li><a href="/wiki/WikiEnd/First">WikiEnd/First</a>\
</li><li><a href="/wiki/WikiEnd/Second">WikiEnd/Second</a></li></ul></\
...

TITLEINDEX4_MACRO_TEST_CASES

Value:
u'''
============================== TitleIndex group and page with numbers \
(#7919)
[[TitleIndex(format=group)]]
------------------------------
<p>
</p><div class="titleindex"><ul><li><strong>0.11</strong><ul><li><stro\
ng>Group</strong><ul><li><a href="/wiki/0.11/GroupOne">0.11/GroupOne</\
...

TITLEINDEX5_MACRO_TEST_CASES

Value:
u'''
============================== TitleIndex, hierarchy format with compl\
ex hierarchy
[[TitleIndex(format=hierarchy)]]
------------------------------
<p>
</p><div class="titleindex"><ul><li><a href="/wiki/TracDev">TracDev</a\
><ul><li><a href="/wiki/TracDev/ApiChanges">ApiChanges</a><ul><li><a h\
...