zoom.testing package

Submodules

zoom.testing.apptest module

apptest

tools for writting application integration tests

class zoom.testing.apptest.AppTestCase(methodName='runTest')

Bases: zoom.testing.apptest.AppTestPrimitives

App test base class

as_user(username)
credentials = {'admin': 'admin', 'user': 'user'}
login(username, password)
logout()
setUp()

Hook method for setting up the test fixture before exercising it.

username = None
class zoom.testing.apptest.AppTestPrimitives(methodName='runTest')

Bases: unittest.case.TestCase

AppTest Primitives

assertContains(text)

Pass if response contains text

assertNotContains(text)

Pass if response does not contain text

assertNotRedirected()
assertRedirected(location=None)
assertReturnStatus(code)

Pass if return status is as expected

base_url = ''
build_request(url=None, data=None)

build a request

clear()

Clear the request of form data

click(name)
contains(text)

return True if response contains text

cookies = None
fill(data)
get(url=None)

get a response

handle(request)
logger = <Logger zoom.testing.apptest (WARNING)>
name
path = '/home/docs/checkouts/readthedocs.org/user_builds/zoom/checkouts/latest/web/sites/localhost'
post(url=None, data=None)

get a response

press(name)
redirected = False
request = None
response = None
save_content(filename=None)
session_token = None
setUp()

Hook method for setting up the test fixture before exercising it.

subject_token = None
url
zoom.testing.apptest.get_path()

zoom.testing.webtest module

Module contents