Package trac :: Package tests :: Package functional :: Module better_twill

Module better_twill

source code

better_twill is a small wrapper around twill to set some sane defaults and monkey-patch some better versions of some of twill's methods. It also handles twill's absense.
Functions
 
twill_write_html()
Write the current html to a file.
source code
 
better_formvalue(form, field, value, fv=<function formvalue at 0x7f41c930bf50>) source code
 
better_browser_submit(fieldname=None, formname=None, browser=None, old_submit=<bound method TwillBrowser.submit of <twill.browser.TwillBrows...) source code
 
better_submit(fieldname=None, formname=None) source code
 
better_formfile(formname, fieldname, filename, content_type=None, fp=None) source code
 
better_find(what, flags='', tcfind=<function find at 0x7f41c930b938>) source code
 
better_notfind(what, flags='', tcnotfind=<function notfind at 0x7f41c930b9b0>) source code
 
better_url(should_be, tcurl=<function url at 0x7f41c930b7d0>) source code
Variables
  etree = None
hash(x)
  b = None
  __package__ = 'trac.tests.functional'

Imports: os, sys, urllib, urlparse, abspath, dirname, join, pv, StringIO, to_unicode, twill, ConnectError, tc


Function Details

twill_write_html()

source code 
Write the current html to a file. Name the file based on the current testcase.