Module Import alias Import alias ImportFrom alias alias ImportFrom alias alias alias alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr CompareIsNot AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Str Assign NameStore Call NameLoad keyword Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Str Assign NameStore Call NameLoad keyword Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad keyword Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A unittest N/A time app create_app db app.models User AnonymousUser Permission Role UserModelTestCase N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self app N/A create_app testing N/A N/A self app_context N/A N/A N/A self app app_context N/A N/A N/A N/A self app_context push N/A N/A N/A db create_all N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A db session remove N/A N/A N/A db drop_all N/A N/A N/A N/A self app_context pop N/A test_password_setter N/A N/A self N/A N/A N/A u N/A User password password N/A N/A N/A self assertTrue N/A N/A u password_hash None N/A test_no_password_getter N/A N/A self N/A N/A N/A u N/A User password password N/A N/A N/A self assertRaises AttributeError N/A N/A N/A N/A u password N/A test_password_verification N/A N/A self N/A N/A N/A u N/A User password password N/A N/A N/A self assertTrue N/A N/A u verify_password password N/A N/A N/A self assertFalse N/A N/A u verify_password notpassword N/A test_password_salts_are_random N/A N/A self N/A N/A N/A u N/A User password password N/A u2 N/A User password password N/A N/A N/A self assertTrue N/A N/A u password_hash N/A u2 password_hash N/A test_valid_confirmation_token N/A N/A self N/A N/A N/A u N/A User password password N/A N/A N/A N/A db session add u N/A N/A N/A N/A db session commit N/A token N/A N/A u generate_confirmation_token N/A N/A N/A self assertTrue N/A N/A u confirm_account token N/A test_invalid_confirmation_token N/A N/A self N/A N/A N/A u1 N/A User password password N/A u2 N/A User password notpassword N/A N/A N/A N/A db session add u1 N/A N/A N/A N/A db session add u2 N/A N/A N/A N/A db session commit N/A token N/A N/A u1 generate_confirmation_token N/A N/A N/A self assertFalse N/A N/A u2 confirm_account token N/A test_expired_confirmation_token N/A N/A self N/A N/A N/A u N/A User password password N/A N/A N/A N/A db session add u N/A N/A N/A N/A db session commit N/A token N/A N/A u generate_confirmation_token 1 N/A N/A N/A time sleep 2 N/A N/A N/A self assertFalse N/A N/A u confirm_account token N/A test_valid_reset_token N/A N/A self N/A N/A N/A u N/A User password password N/A N/A N/A N/A db session add u N/A N/A N/A N/A db session commit N/A token N/A N/A u generate_password_reset_token N/A N/A N/A self assertTrue N/A N/A u reset_password token notpassword N/A N/A N/A self assertTrue N/A N/A u verify_password notpassword N/A test_invalid_reset_token N/A N/A self N/A N/A N/A u1 N/A User password password N/A u2 N/A User password notpassword N/A N/A N/A N/A db session add u1 N/A N/A N/A N/A db session add u2 N/A N/A N/A N/A db session commit N/A token N/A N/A u1 generate_password_reset_token N/A N/A N/A self assertFalse N/A N/A u2 reset_password token notnotpassword N/A N/A N/A self assertTrue N/A N/A u2 verify_password notpassword N/A test_valid_email_change_token N/A N/A self N/A N/A N/A u N/A User email user@example.com password password N/A N/A N/A N/A db session add u N/A N/A N/A N/A db session commit N/A token N/A N/A u generate_email_change_token otheruser@example.org N/A N/A N/A self assertTrue N/A N/A u change_email token N/A N/A N/A self assertTrue N/A N/A u email otheruser@example.org N/A test_invalid_email_change_token N/A N/A self N/A N/A N/A u1 N/A User email user@example.com password password N/A u2 N/A User email otheruser@example.org password notpassword N/A N/A N/A N/A db session add u1 N/A N/A N/A N/A db session add u2 N/A N/A N/A N/A db session commit N/A token N/A N/A u1 generate_email_change_token otherotheruser@example.net N/A N/A N/A self assertFalse N/A N/A u2 change_email token N/A N/A N/A self assertTrue N/A N/A u2 email otheruser@example.org N/A test_duplicate_email_change_token N/A N/A self N/A N/A N/A u1 N/A User email user@example.com password password N/A u2 N/A User email otheruser@example.org password notpassword N/A N/A N/A N/A db session add u1 N/A N/A N/A N/A db session add u2 N/A N/A N/A N/A db session commit N/A token N/A N/A u2 generate_email_change_token user@example.com N/A N/A N/A self assertFalse N/A N/A u2 change_email token N/A N/A N/A self assertTrue N/A N/A u2 email otheruser@example.org N/A test_roles_and_permissions N/A N/A self N/A N/A N/A N/A N/A Role insert_roles N/A u N/A User email user@example.com password password N/A N/A N/A self assertTrue N/A N/A u can N/A Permission GENERAL N/A N/A N/A self assertFalse N/A N/A u can N/A Permission ADMINISTER N/A test_make_administrator N/A N/A self N/A N/A N/A N/A N/A Role insert_roles N/A u N/A User email user@example.com password password N/A N/A N/A self assertFalse N/A N/A u can N/A Permission ADMINISTER N/A N/A u role N/A N/A N/A N/A N/A Role query filter_by permissions N/A Permission ADMINISTER first N/A N/A N/A self assertTrue N/A N/A u can N/A Permission ADMINISTER N/A test_administrator N/A N/A self N/A N/A N/A N/A N/A Role insert_roles N/A r N/A N/A N/A N/A N/A Role query filter_by permissions N/A Permission ADMINISTER first N/A u N/A User email user@example.com password password role r N/A N/A N/A self assertTrue N/A N/A u can N/A Permission ADMINISTER N/A N/A N/A self assertTrue N/A N/A u can N/A Permission GENERAL N/A N/A N/A self assertTrue N/A N/A u is_admin N/A test_anonymous N/A N/A self N/A N/A N/A u N/A AnonymousUser N/A N/A N/A self assertFalse N/A N/A u can N/A Permission GENERAL N/A N/A