Module ImportFrom alias alias alias ImportFrom alias alias alias Import alias ImportFrom alias Assign NameStore Call NameLoad FunctionDef arguments args defaults body With Call NameLoad NameLoad NameStore body Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword Str Expr Call NameLoad Str Call NameLoad AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Assign NameStore Str Assign NameStore Num Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad Call NameLoad AttributeLoad NameLoad attr NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Assign NameStore Call AttributeLoad Str attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call NameLoad ListLoad Call NameLoad NameLoad AttributeLoad Call NameLoad AttributeLoad NameLoad attr NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str keyword Num Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Str attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad Dict Str Str Str Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad ListLoad Dict Str Str Str Str Str Str Str Num BinOpMult Str Num Str ListLoad Dict Str Str Str Num Str Str BinOpMult Str Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad Str SubscriptLoad NameLoad Index Str Expr Call NameLoad Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str decorator_list Call NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad Dict Str Str Str Str Str Str Num Num Num Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad Dict Str Str Str Str Str Str Str Str Num Num Str Num Num Num Num Num Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Dict Str Str Str Str Str Str Str Str Num Num Num Num Num Num Str Num Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad Str Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad Str Call AttributeLoad NameLoad attr Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Num Str Num Num Num Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list
N/A mock call patch Mock nose.tools eq_ raises assert_raises N/A btsync responses ResponseFixtures N/A fixtures N/A ResponseFixtures test_unrecognized_params_used_to_construct_client N/A N/A N/A N/A N/A N/A assert_raises AssertionError e N/A N/A N/A N/A btsync Client host 192.168.1.1 port 5555 user admin pwd admin N/A N/A eq_ Unrecognized params: ['pwd', 'user'] N/A str N/A e exception N/A TestClient N/A object N/A N/A patchers N/A N/A HOST 127.0.0.1 N/A PORT 1106 N/A USERNAME admin N/A PASSWORD password _patch N/A N/A self N/A args kwargs N/A N/A patcher N/A patch args kwargs N/A N/A N/A N/A self patchers append patcher N/A N/A N/A patcher start N/A _make_client N/A N/A self N/A N/A N/A N/A N/A btsync Client host N/A self HOST port N/A self PORT username N/A self USERNAME password N/A self PASSWORD N/A _mock_token N/A N/A self token N/A T N/A N/A N/A self get_token N/A N/A self _patch btsync.client.Client._get_token return_value token N/A _mock_response N/A N/A self method response_text N/A N/A N/A N/A N/A N/A getattr N/A self mock_session method return_value text response_text N/A assert_request_url N/A N/A self rest_url method N/A get N/A N/A url N/A N/A http://{host}:{port}/gui/{rest_url} format host N/A self HOST port N/A self PORT rest_url rest_url N/A N/A eq_ N/A N/A call url N/A N/A getattr N/A self mock_session method call_args_list N/A setup N/A N/A self N/A N/A N/A N/A self time N/A N/A self _patch btsync.client.time.time return_value 0.999 N/A N/A self mock_session N/A Mock N/A N/A self session_class N/A N/A self _patch btsync.client.requests.Session return_value N/A self mock_session N/A teardown N/A N/A self N/A N/A N/A patcher N/A self patchers N/A N/A N/A N/A patcher stop N/A N/A N/A self __class__ patchers N/A N/A test_authenticate_should_send_auth_header_and_extract_token N/A N/A self N/A N/A N/A TOKEN _0y2dsNVJ_ww1pPcfHxMpro6OLG73jHTWOob9kku9DRLhe-pz_M0a_lHVFIAAAAA N/A N/A N/A self _mock_response post N/A N/A <html><div id='token' style='display:none;'>{token}</div></html> format token TOKEN N/A client N/A N/A self _make_client N/A N/A eq_ N/A N/A self mock_session auth N/A admin password N/A N/A N/A self assert_request_url token.html?t=999 method post N/A N/A eq_ TOKEN N/A client _token N/A test_get_os_type N/A N/A self N/A N/A N/A N/A N/A self _mock_token N/A N/A N/A self _mock_response get N/A fixtures GETOSTYPE N/A client N/A N/A self _make_client N/A N/A eq_ linux N/A client os_type N/A N/A N/A self assert_request_url ?action=getostype&token=T&t=999 N/A test_get_version N/A N/A self N/A N/A N/A N/A N/A self _mock_token N/A N/A N/A self _mock_response get N/A fixtures GETVERSION N/A client N/A N/A self _make_client N/A N/A eq_ 121 N/A client version N/A N/A N/A self assert_request_url ?action=getversion&token=T&t=999 N/A test_new_version N/A N/A self N/A N/A N/A N/A N/A self _mock_token N/A N/A N/A self _mock_response get N/A fixtures CHECKNEWVERSION N/A client N/A N/A self _make_client N/A N/A eq_ N/A url version 0 N/A client new_version N/A N/A N/A self assert_request_url ?action=checknewversion&token=T&t=999 N/A test_sync_folders N/A N/A self N/A N/A N/A N/A N/A self _mock_token N/A N/A N/A self _mock_response get N/A fixtures GETSYNCFOLDERS N/A client N/A N/A self _make_client N/A N/A eq_ N/A N/A name iswritable secret size peers readonlysecret /home/foo/bar 1 N/A A 32 353.9 MB in 256 files N/A N/A direct name status 1 rpi Synced on 10/08/13 11:21:30 N/A B 32 N/A client sync_folders N/A N/A N/A self assert_request_url ?action=getsyncfolders&token=T&t=999 N/A test_generate_secret N/A N/A self N/A N/A N/A N/A N/A self _mock_token N/A N/A N/A self _mock_response get N/A fixtures GENERATESECRET N/A client N/A N/A self _make_client N/A secrets N/A N/A client generate_secret N/A N/A eq_ SECRET N/A secrets N/A secret N/A N/A eq_ READONLY N/A secrets N/A rosecret N/A N/A N/A self assert_request_url ?action=generatesecret&token=T&t=999 N/A test_get_username N/A N/A self N/A N/A N/A N/A N/A self _mock_token N/A N/A N/A self _mock_response get N/A fixtures GETUSERNAME N/A client N/A N/A self _make_client N/A N/A eq_ admin N/A client username N/A N/A N/A self assert_request_url ?action=getusername&token=T&t=999 N/A test_add_sync_folder_succeeded N/A N/A self N/A N/A N/A N/A N/A self _mock_token N/A N/A N/A self _mock_response get N/A fixtures ADDSYNCFOLDER_SUCCESS N/A client N/A N/A self _make_client N/A N/A N/A client add_sync_folder /tmp F00BA4 N/A N/A N/A self assert_request_url ?action=addsyncfolder&secret=F00BA4&name=%2Ftmp&token=T&t=999 N/A test_add_sync_folder_failed N/A N/A self N/A N/A N/A N/A N/A self _mock_token N/A N/A N/A self _mock_response get N/A fixtures ADDSYNCFOLDER_ERROR N/A client N/A N/A self _make_client N/A N/A N/A client add_sync_folder /tmp F00BA4 N/A N/A raises N/A btsync BtsyncException test_add_sync_folder_force_succeeded N/A N/A self N/A N/A N/A N/A N/A self _mock_token N/A N/A N/A self _mock_response get N/A fixtures ADDSYNCFOLDER_SUCCESS N/A client N/A N/A self _make_client N/A N/A N/A client add_sync_folder /tmp F00BA4 force True N/A N/A N/A self assert_request_url ?force=1&name=%2Ftmp&token=T&secret=F00BA4&t=999&action=addsyncfolder N/A test_remove_sync_folder N/A N/A self N/A N/A N/A N/A N/A self _mock_token N/A N/A N/A self _mock_response get N/A fixtures REMOVEFOLDER N/A client N/A N/A self _make_client N/A N/A N/A client remove_sync_folder /tmp F00BA4 N/A N/A N/A self assert_request_url ?action=removefolder&secret=F00BA4&name=%2Ftmp&token=T&t=999 N/A test_settings N/A N/A self N/A N/A N/A N/A N/A self _mock_token N/A N/A N/A self _mock_response get N/A fixtures GETSETTINGS N/A client N/A N/A self _make_client N/A N/A eq_ N/A devicename dlrate listeningport portmapping ulrate MBP 0 58156 1 0 N/A client settings N/A N/A N/A self assert_request_url ?action=getsettings&token=T&t=999 N/A test_get_folder_preference N/A N/A self N/A N/A N/A N/A N/A self _mock_token N/A N/A N/A self _mock_response get N/A fixtures GETFOLDERPREF N/A client N/A N/A self _make_client N/A N/A eq_ N/A deletetotrash iswritable readonlysecret relay searchdht searchlan usehosts usetracker 1 1 READONLY 1 0 1 0 1 N/A N/A client get_folder_preference NAME SECRET N/A N/A N/A self assert_request_url ?action=getfolderpref&secret=SECRET&name=NAME&token=T&t=999 N/A test_set_folder_preference N/A N/A self N/A N/A N/A N/A N/A self _mock_token N/A N/A N/A self _mock_response get N/A fixtures SETFOLDERPREF N/A client N/A N/A self _make_client N/A N/A N/A client set_folder_preference NAME SECRET N/A searchlan usehosts relay deletetotrash iswritable searchdht readonlysecret usetracker 0 0 1 1 1 0 READONLY 0 N/A N/A N/A self assert_request_url ?searchlan=0&name=NAME&relay=1&deletetotrash=1&iswritable=1&searchdht=0&usehosts=0&secret=SECRET&t=999&action=setfolderpref&readonlysecret=READONLY&usetracker=0&token=T N/A test_generate_invite N/A N/A self N/A N/A N/A N/A N/A self _mock_token N/A N/A N/A self _mock_response get N/A fixtures GENERATEINVITE N/A client N/A N/A self _make_client N/A N/A eq_ INVITE_TOKEN N/A N/A client generate_invite NAME SECRET N/A N/A N/A self assert_request_url ?action=generateinvite&secret=SECRET&name=NAME&token=T&t=999 N/A test_generate_readonly_invite N/A N/A self N/A N/A N/A N/A N/A self _mock_token N/A N/A N/A self _mock_response get N/A fixtures GENERATEROINVITE N/A client N/A N/A self _make_client N/A N/A eq_ READONLY_INVITE_TOKEN N/A N/A client generate_invite NAME SECRET readonly True N/A N/A N/A self assert_request_url ?action=generateroinvite&secret=SECRET&name=NAME&token=T&t=999 N/A test_update_secret N/A N/A self N/A N/A N/A N/A N/A self _mock_token N/A N/A N/A self _mock_response get N/A fixtures UPDATESECRET N/A client N/A N/A self _make_client N/A N/A N/A client update_secret NAME SECRET NEWSECRET N/A N/A N/A self assert_request_url ?name=NAME&token=T&secret=SECRET&t=999&action=updatesecret&newsecret=NEWSECRET N/A test_set_settings N/A N/A self N/A N/A N/A N/A N/A self _mock_token N/A N/A N/A self _mock_response get N/A fixtures SETSETTINGS N/A client N/A N/A self _make_client N/A N/A N/A client set_settings N/A dlrate devicename ulrate portmapping listeningport 0 MBP 999 1 58156 N/A N/A N/A self assert_request_url ?dlrate=0&devicename=MBP&token=T&t=999&listeningport=58156&action=setsettings&portmapping=1&ulrate=999 N/A N/A