Package trac :: Package tests :: Module wikisyntax

Module wikisyntax

source code

Functions
 
attachment_setup(tc) source code
 
attachment_teardown(tc) source code
 
email_default_context() source code
 
email_never_obfuscate_setup(tc) source code
 
suite() source code
Variables
  SEARCH_TEST_CASES = ...
  ATTACHMENT_TEST_CASES = ...
  EMAIL_TEST_CASE_DEFAULT = ...
  EMAIL_TEST_CASE_NEVER_OBFUSCATE = ...
  __package__ = 'trac.tests'

Imports: os, shutil, tempfile, unittest, Attachment, Context, Resource, SearchModule, MockPerm, Href, formatter


Variables Details

SEARCH_TEST_CASES

Value:
u'''
============================== search: link resolver
search:foo
search:"foo bar"
[search:bar Bar]
[search:bar]
[search:]
------------------------------
...

ATTACHMENT_TEST_CASES

Value:
u'''
============================== attachment: link resolver (deprecated)
attachment:wiki:WikiStart:file.txt (deprecated)
attachment:ticket:123:file.txt (deprecated)
[attachment:wiki:WikiStart:file.txt file.txt] (deprecated)
[attachment:ticket:123:file.txt] (deprecated)
------------------------------
<p>
...

EMAIL_TEST_CASE_DEFAULT

Value:
u'''
============================== mailto: obfuscated by default, like pla\
in email
user@example.org vs. mailto:user@example.org
and [mailto:user@example.org Joe User]
------------------------------
<p>
user@… vs. mailto:user@…
...

EMAIL_TEST_CASE_NEVER_OBFUSCATE

Value:
u'''
============================== mailto: not obfuscated, unlike plain em\
ail
user@example.org vs. mailto:user@example.org
and [mailto:user@example.org Joe User]
------------------------------
<p>
user@… vs. <a class="mail-link" href="mailto:user@example.org"><span c\
...