Package trac :: Package admin :: Package tests :: Module console

Module console

source code

Classes
  TracAdminTestCaseBase
  TracadminTestCase
Tests the output of trac-admin and is meant to be used with .../trac/tests.py.
  TracadminNoEnvTestCase
  TracAdminHelpMacroTestCase
  TracAdminComponentTestCase
  TracAdminInitenvTestCase
  TracAdminDeployTestCase
Tests for the trac-admin deploy command.
Functions
 
load_expected_results(file, pattern)
Reads the file, named file, which contains test results separated by the regular expression pattern.
source code
 
execute_cmd(tracadmin, cmd, strip_trailing_space=True, input=None) source code
 
execute_run(args) source code
 
test_suite() source code
Variables
  STRIP_TRAILING_SPACE = re.compile(r'(?m)( +)$')
  __package__ = 'trac.admin.tests'

Imports: copy, difflib, inspect, os, re, sys, tempfile, textwrap, unittest, PIPE, Popen, StringIO, trac, AdminCommandManager, IAdminCommandProvider, console_date_format, get_console_locale, TracAdmin, TracAdminHelpMacro, ConfigSection, Option, Component, ComponentMeta, implements, Environment, EnvironmentStub, rmtree, create_file, close_fds, format_date, get_date_format_hint, get_datetime_format_hint, get_available_locales, has_babel, MacroError


Function Details

load_expected_results(file, pattern)

source code 

Reads the file, named file, which contains test results separated by the regular expression pattern.

The test results are returned as a dictionary.