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

Module console

source code

Classes
  InMemoryConfiguration
A subclass of Configuration that doesn't save to disk.
  InMemoryEnvironment
A subclass of Environment that keeps its' DB in memory.
  TracadminTestCase
Tests the output of trac-admin and is meant to be used with .../trac/tests.py.
Functions
 
load_expected_results(file, pattern)
Reads the file, named file, which contains test results separated by the regular expression pattern.
source code
 
suite() source code
Variables
  STRIP_TRAILING_SPACE = re.compile(r'(?m)( +)$')

Imports: ConfigParser, difflib, os, re, shlex, sys, time, unittest, traceback, StringIO, Configuration, Environment, console, InMemoryDatabase, get_date_format_hint


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.