Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign NameStore NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign TupleStore NameStore AttributeStore NameLoad attr NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Str AttributeLoad NameLoad attr NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Str AttributeLoad NameLoad attr NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword TupleLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword TupleLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword TupleLoad NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str decorator_list
N/A biicode.server.test.store.mongo_test TestWithMongo biicode.server.user.jwt_accounts_manager JWTConfirmEmailManagerFactory biicode.server.user.user_service UserService biicode.server.api.jwt_credentials_manager JWTCredentialsManagerFactory time sleep biicode.test.remote.testing_mongo_store TestingMongoStore jwt DecodeError mock patch Mock biicode.server.exception ControledErrorException UserServiceTest N/A TestWithMongo N/A setUp N/A N/A self N/A args kwargs N/A N/A N/A self store N/A TestingMongoStore N/A self conn N/A self database_name N/A N/A _ N/A self brl_user N/A N/A N/A self store generate_non_persistent_user N/A N/A self user_service N/A UserService N/A self store N/A self brl_user N/A N/A self email N/A %s@fake.com N/A self brl_user N/A N/A self plain_password kaKePass N/A allow_mailing False N/A N/A self bii_user N/A N/A N/A self user_service register N/A self brl_user N/A self email N/A self plain_password allow_mailing N/A N/A self manager N/A N/A JWTConfirmEmailManagerFactory new N/A N/A _ N/A self confirmed_user _ N/A N/A N/A self user_service confirm_account N/A N/A self bii_user confirmation_token N/A test_used_register N/A N/A self N/A N/A N/A Resgister and confirm user N/A N/A N/A self assertEqual N/A N/A self bii_user ID N/A self confirmed_user N/A test_invite_register N/A N/A self N/A N/A N/A N/A N/A N/A self user_service register newuser newuser@fake.com N/A self plain_password True invited_by N/A self brl_user N/A saved_user N/A N/A N/A self store read_user newuser N/A N/A N/A self assertEquals N/A saved_user invited_by N/A self brl_user N/A N/A N/A self assertRaises ControledErrorException N/A N/A self user_service register newuser2 newuser2@fake.com N/A self plain_password True invited_by noexistuser N/A N/A N/A N/A self user_service register newuser2 newuser2@fake.com N/A self plain_password True invited_by N/A self email N/A saved_user N/A N/A N/A self store read_user newuser2 N/A N/A N/A self assertEquals N/A saved_user invited_by N/A self brl_user N/A N/A N/A self assertRaises ControledErrorException N/A N/A self user_service register newuser3 newuser3@fake.com N/A self plain_password True invited_by NOT@email.com N/A test_invalid_token N/A N/A self N/A N/A N/A Obtain a valid token and then change password. Token must be invalid N/A N/A brl_user token_1 N/A N/A N/A self user_service authenticate N/A self brl_user N/A self plain_password N/A manager N/A N/A JWTCredentialsManagerFactory new N/A self store N/A brl_user_test N/A N/A manager get_user token_1 N/A N/A N/A self assertEqual brl_user brl_user_test N/A N/A sleep 0.1 N/A N/A N/A N/A self user_service change_password N/A self brl_user N/A self plain_password Newp@sW0rd N/A N/A N/A self assertRaises DecodeError N/A manager get_user token_1 N/A test_oauth_register N/A N/A self get_oauth_service N/A N/A N/A email new_user1@biicode.com N/A N/A _ brl_user N/A N/A N/A self store generate_non_persistent_user N/A oauth_service N/A Mock N/A N/A oauth_service get_user_info N/A Mock return_value N/A brl_user email N/A N/A get_oauth_service return_value oauth_service N/A N/A self bii_user N/A N/A N/A self user_service register brl_user email N/A self plain_password True google THE_ACCESS_TOKEN N/A saved_user N/A N/A N/A self store read_user brl_user N/A N/A N/A self assertEqual N/A saved_user oauth_google_token THE_ACCESS_TOKEN N/A N/A N/A self assertIsNone N/A saved_user oauth_github_token N/A N/A N/A self assertEqual N/A saved_user active True N/A email new_user2@biicode.com N/A N/A _ brl_user N/A N/A N/A self store generate_non_persistent_user N/A oauth_service N/A Mock N/A N/A oauth_service get_user_info N/A Mock return_value N/A brl_user email N/A N/A get_oauth_service return_value oauth_service N/A N/A self bii_user N/A N/A N/A self user_service register brl_user email N/A self plain_password True github THE_GITHUB_ACCESS_TOKEN N/A saved_user N/A N/A N/A self store read_user brl_user N/A N/A N/A self assertEqual N/A saved_user oauth_github_token THE_GITHUB_ACCESS_TOKEN N/A N/A N/A self assertIsNone N/A saved_user oauth_google_token N/A N/A N/A self assertEqual N/A saved_user active True N/A email new_user3@biicode.com N/A N/A _ brl_user N/A N/A N/A self store generate_non_persistent_user N/A oauth_service N/A Mock N/A N/A oauth_service get_user_info N/A Mock return_value N/A brl_user othermail@biicode.com N/A N/A get_oauth_service return_value oauth_service N/A N/A self bii_user N/A N/A N/A self user_service register brl_user email N/A self plain_password True github THE_GITHUB_ACCESS_TOKEN N/A saved_user N/A N/A N/A self store read_user brl_user N/A N/A N/A self assertEqual N/A saved_user oauth_github_token THE_GITHUB_ACCESS_TOKEN N/A N/A N/A self assertIsNone N/A saved_user oauth_google_token N/A N/A N/A self assertEqual N/A saved_user active False N/A email new_user4@biicode.com N/A N/A _ brl_user N/A N/A N/A self store generate_non_persistent_user N/A oauth_service N/A Mock N/A N/A oauth_service get_user_info N/A Mock return_value None N/A N/A get_oauth_service return_value oauth_service N/A N/A self bii_user N/A N/A N/A self user_service register brl_user email N/A self plain_password True github THE_GITHUB_ACCESS_TOKEN N/A saved_user N/A N/A N/A self store read_user brl_user N/A N/A N/A self assertIsNone N/A saved_user oauth_github_token N/A N/A N/A self assertIsNone N/A saved_user oauth_google_token N/A N/A N/A self assertEqual N/A saved_user active False N/A N/A patch biicode.server.user.user_service.get_oauth_service N/A