Package turbogears :: Module testutil

Module testutil

source code

Classes
  DBTest
Functions
 
set_identity_user(user)
Setup a user for configuring request's identity.
source code
 
attach_identity(req) source code
 
create_request(request, method='GET', protocol='HTTP/1.1', headers={}, rfile=None, clientAddress='127.0.0.1', remoteHost='localhost', scheme='http') source code
 
createRequest(request, method='GET', protocol='HTTP/1.1', headers={}, rfile=None, clientAddress='127.0.0.1', remoteHost='localhost', scheme='http') source code
 
call(method, *args, **kw) source code
 
capture_log(category)
Capture log for one category.
source code
 
print_log()
Print the log captured by capture_log to stdout.
source code
 
get_log()
Return the list of log messages captured by capture_log.
source code
 
sqlalchemy_cleanup() source code
Function Details

capture_log(category)

source code 

Capture log for one category.

The category can either be a single category (a string like 'foo.bar') or a list of them. You *must* call print_log() to reset when you're done.

print_log()

source code 

Print the log captured by capture_log to stdout.

Resets that log and resets the temporarily added handlers.

get_log()

source code 

Return the list of log messages captured by capture_log.

Resets that log and resets the temporarily added handlers.