Module Expr Str ImportFrom alias alias Import alias Import alias Import alias Import alias FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str NameLoad decorator_list Assign NameStore Num Assign NameStore Dict Str Str Str Str Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad keyword NameLoad Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad If BoolOpAnd CompareIs SubscriptLoad AttributeLoad NameLoad attr Index Num Num CompareIs SubscriptLoad AttributeLoad NameLoad attr Index Num Num body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr BinOpAdd SubscriptLoad NameLoad Index Str Str Call NameLoad Str keyword NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Lambda arguments args defaults Call AttributeLoad NameLoad attr Return NameLoad decorator_list Call AttributeLoad NameLoad attr Str NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Str attr Assert CompareIn Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad decorator_list
N/A N/A 
An example of testing a Flask app with py.test and Selenium with help of testliveserver.
 os path environ N/A sys N/A liveandletdie N/A pytest N/A sample_apps abspath N/A N/A pth N/A N/A N/A N/A N/A path join N/A N/A path dirname __file__ ../.. pth N/A N/A PORT 8001 N/A APPS N/A Pyramid Flask Flask SSL Django N/A N/A liveandletdie WsgirefSimpleServer N/A abspath sample_apps/pyramid/main.py port PORT N/A N/A liveandletdie Flask N/A abspath sample_apps/flask/main.py port PORT N/A N/A liveandletdie Flask N/A abspath sample_apps/flask/main.py port PORT ssl True N/A N/A liveandletdie Django N/A abspath sample_apps/django/example port PORT N/A N/A N/A N/A N/A sys version_info N/A 0 2 N/A N/A N/A sys version_info N/A 1 7 N/A N/A N/A APPS N/A GAE N/A N/A liveandletdie GAE N/A N/A environ N/A VIRTUAL_ENV /bin/dev_appserver N/A abspath sample_apps/gae port PORT app N/A N/A request N/A N/A N/A app N/A APPS N/A N/A request param N/A N/A app name N/A request param N/A N/A N/A N/A N/A app live kill_port True N/A N/A N/A Exception N/A e N/A N/A N/A N/A pytest fail N/A e message N/A N/A N/A request addfinalizer N/A N/A N/A N/A N/A N/A app die N/A app N/A N/A N/A pytest fixture module APPS browser N/A N/A request N/A N/A N/A N/A N/A liveandletdie port_in_use PORT True N/A browser N/A N/A sample_apps get_browser N/A N/A N/A browser implicitly_wait 3 finalizer N/A N/A N/A N/A N/A N/A N/A browser quit N/A N/A N/A sample_apps teardown N/A N/A N/A N/A request addfinalizer finalizer N/A browser N/A N/A N/A pytest fixture module test_home N/A N/A browser app N/A N/A N/A Andy visits a webpage and sees "Home". N/A N/A N/A browser get N/A app check_url N/A page_text N/A N/A N/A browser find_element_by_tag_name body text N/A N/A N/A N/A Home {0} format N/A app name page_text N/A