Module Expr Str ImportFrom alias ImportFrom alias alias alias ImportFrom alias ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call NameLoad Str attr Assert CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr Assert CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr Assert CompareIn Str NameLoad decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareIn Str NameLoad decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq Call NameLoad AttributeLoad NameLoad attr Num Assert CompareIs Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Num Assert CompareEq Call NameLoad AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad attr Assert CompareIsNot NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr NameLoad Assert CompareIs Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A N/A Functional tests using WebTest.

See: http://webtest.readthedocs.org/
 flask url_for comport.user.models User Role Invite_Code comport.department.models Department TestLoggingIn N/A N/A test_can_log_in_returns_200 N/A N/A self user testapp N/A N/A N/A res N/A N/A testapp get /login/ N/A form N/A N/A res forms N/A loginForm N/A N/A form N/A username N/A user username N/A N/A form N/A password myprecious N/A res N/A N/A N/A N/A form submit follow N/A N/A N/A res status_code 200 N/A test_sees_alert_on_log_out N/A N/A self user testapp N/A N/A N/A res N/A N/A testapp get /login/ N/A form N/A N/A res forms N/A loginForm N/A N/A form N/A username N/A user username N/A N/A form N/A password myprecious N/A res N/A N/A N/A N/A form submit follow N/A res N/A N/A N/A N/A testapp get N/A url_for public.logout follow N/A N/A You are logged out. res N/A test_sees_error_message_if_password_is_incorrect N/A N/A self user testapp N/A N/A N/A res N/A N/A testapp get /login/ N/A form N/A N/A res forms N/A loginForm N/A N/A form N/A username N/A user username N/A N/A form N/A password wrong N/A res N/A N/A form submit N/A N/A Invalid password res N/A test_sees_error_message_if_username_doesnt_exist N/A N/A self user testapp N/A N/A N/A res N/A N/A testapp get /login/ N/A form N/A N/A res forms N/A loginForm N/A N/A form N/A username unknown N/A N/A form N/A password myprecious N/A res N/A N/A form submit N/A N/A Unknown user res N/A N/A TestUserRoles N/A N/A test_access N/A N/A self user testapp N/A N/A N/A admin_role N/A N/A Role create name admin N/A N/A N/A N/A user roles append admin_role N/A N/A N/A user save N/A N/A N/A TestLoggingIn test_can_log_in_returns_200 self user user testapp testapp N/A res N/A N/A N/A N/A testapp get /admin follow N/A N/A N/A res status_code 200 N/A N/A Admin Dashboard res N/A test_department_access N/A N/A self user testapp N/A N/A N/A department N/A N/A Department create name Busy Town Public Safety short_name BTPD load_defaults False N/A N/A N/A N/A user departments append department N/A N/A N/A user save N/A N/A N/A TestLoggingIn test_can_log_in_returns_200 self user user testapp testapp N/A res N/A N/A N/A N/A testapp get /department/6 follow N/A N/A N/A res status_code 200 N/A N/A You do not have sufficent permissions to do that res N/A N/A TestRegistering N/A N/A test_can_register N/A N/A self user testapp N/A N/A N/A  A new user can register.
         N/A test_username cato N/A test_email cato@example.com N/A test_password pistol_and_ball N/A test_invite_code coffin_warehouses N/A department N/A N/A Department create name Spleen Police Department short_name SPD load_defaults False N/A N/A N/A Invite_Code create department_id N/A department id code test_invite_code N/A old_user_count N/A len N/A N/A N/A User query all N/A N/A N/A len N/A department users 0 N/A N/A N/A N/A N/A N/A N/A User query filter_by username test_username first None N/A response N/A N/A testapp get /register/ N/A form N/A N/A response forms N/A registerForm N/A N/A form N/A username test_username N/A N/A form N/A email test_email N/A N/A form N/A password test_password N/A N/A form N/A confirm test_password N/A N/A form N/A invite_code test_invite_code N/A response N/A N/A N/A N/A form submit follow N/A N/A N/A response status_code 200 N/A N/A N/A len N/A N/A N/A User query all N/A old_user_count 1 N/A N/A N/A len N/A department users 1 N/A check_user N/A N/A N/A N/A N/A User query filter_by username test_username first N/A N/A check_user None N/A N/A N/A check_user email test_email N/A N/A N/A N/A check_user check_password test_password True N/A N/A