Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad Call NameLoad keyword AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Str keyword BinOpMult BinOpMult BinOpMult Num Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A django.test TestCase corehq.apps.domain.models Domain corehq.apps.users.dbaccessors.all_commcare_users delete_all_users corehq.apps.users.models CouchUser WebUser CommCareUser dimagi.utils.couch get_cached_property PhoneUsersTestCase N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A delete_all_users N/A N/A self username username N/A N/A self password password N/A N/A self domain mockdomain N/A N/A N/A N/A Domain name N/A self domain save N/A N/A self couch_user N/A N/A WebUser create N/A self domain N/A self username N/A self password N/A N/A N/A self couch_user language en N/A N/A N/A N/A self couch_user save N/A tearDown N/A N/A self N/A N/A N/A user N/A N/A WebUser get_by_username N/A self username N/A user N/A N/A N/A N/A user delete N/A domain N/A N/A Domain get_by_name N/A self domain N/A domain N/A N/A N/A N/A domain delete N/A testPhoneUsersViewNoNumberSet N/A N/A self N/A N/A N/A phone_users_count N/A N/A N/A N/A CouchUser view users/phone_users_by_domain key N/A self domain count N/A N/A N/A self assertEquals phone_users_count 0 N/A testPhoneUsersViewDefaultNumber N/A N/A self N/A N/A N/A N/A N/A N/A self couch_user add_phone_number 789 N/A N/A N/A N/A self couch_user add_phone_number 101 default True N/A N/A N/A N/A self couch_user add_phone_number 112 N/A N/A N/A N/A self couch_user save N/A phone_user N/A N/A N/A N/A CouchUser phone_users_by_domain N/A self domain one N/A N/A N/A self assertEquals N/A phone_user username N/A self username N/A N/A N/A self assertEquals N/A phone_user default_phone_number 101 N/A testPhoneUsersChangeDefaultNumber N/A N/A self N/A N/A N/A N/A N/A N/A self couch_user add_phone_number 789 N/A N/A N/A N/A self couch_user add_phone_number 101 default True N/A N/A N/A N/A self couch_user save N/A N/A N/A self assertEquals N/A N/A self couch_user default_phone_number 101 N/A N/A N/A N/A self couch_user set_default_phone_number 789 N/A N/A N/A N/A self couch_user save N/A N/A N/A self assertEquals N/A N/A self couch_user default_phone_number 789 N/A testPhoneUsersViewLastCommCareUsername N/A N/A self N/A N/A N/A N/A N/A N/A self couch_user delete N/A phone_user_count N/A N/A N/A N/A CouchUser phone_users_by_domain N/A self domain count N/A N/A N/A self assertEquals phone_user_count 0 N/A couch_user N/A N/A WebUser create N/A self domain commcare_username_2 password N/A N/A N/A couch_user add_phone_number 123 N/A N/A N/A couch_user save N/A phone_user_count N/A N/A N/A N/A CouchUser phone_users_by_domain N/A self domain count N/A N/A N/A self assertEquals phone_user_count 1 N/A phone_user N/A N/A N/A N/A CouchUser phone_users_by_domain N/A self domain one N/A N/A N/A self assertEquals N/A phone_user username commcare_username_2 N/A testWebUserImplementsMobileMixIn N/A N/A self N/A N/A N/A time_zone N/A N/A N/A self couch_user get_time_zone N/A N/A N/A self assertEquals time_zone UTC N/A lang_code N/A N/A N/A self couch_user get_language_code N/A N/A N/A self assertEquals lang_code en N/A testDeletePhoneNumber N/A N/A self N/A N/A N/A N/A N/A N/A self couch_user add_phone_number +11231231234 N/A N/A N/A N/A self couch_user save N/A N/A N/A self assertEquals N/A len N/A N/A self couch_user phone_numbers 1 N/A N/A N/A N/A self couch_user delete_phone_number +11231231234 N/A N/A N/A self assertEquals N/A len N/A N/A self couch_user phone_numbers 0 N/A test_get_cached_full_name N/A N/A self N/A N/A N/A testuser N/A N/A CommCareUser create test-domain testuser test-pass N/A FULL_NAME Test User N/A N/A N/A testuser set_full_name FULL_NAME N/A N/A N/A testuser save N/A cached_full_name N/A get_cached_property CouchUser N/A testuser get_id full_name expiry N/A N/A N/A 7 24 60 60 N/A N/A N/A self assertEqual FULL_NAME cached_full_name N/A N/A