Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias alias alias alias alias alias alias Import alias alias ImportFrom alias Import alias If AttributeLoad NameLoad attr body Import alias ImportFrom alias orelse Import alias identifier ImportFrom alias Import alias Import alias identifier Import alias identifier ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias alias Import alias ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Expr Call NameLoad BinOpMult Str Num Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad BinOpMult Str Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword Call NameLoad Call AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Delete AttributeDel AttributeLoad NameLoad attr attr Delete AttributeDel AttributeLoad NameLoad attr attr Delete AttributeDel AttributeLoad NameLoad attr attr Delete AttributeDel AttributeLoad NameLoad attr attr Delete AttributeDel AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Expr Call AttributeLoad NameLoad attr Num Expr Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad While CompareGt AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Expr Call NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AugAssignSub AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore ListLoad For NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr If CompareGt Call NameLoad NameLoad Num body Raise Call NameLoad BinOpAdd Str Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword Str While AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad decorator_list FunctionDef arguments args defaults body Expr Str While AttributeLoad NameLoad attr body For NameStore Call NameLoad body Pass Expr Call NameLoad decorator_list FunctionDef arguments args defaults body Expr Str While AttributeLoad NameLoad attr body Assign NameStore Call NameLoad If CompareLtE Call NameLoad NameLoad Num body Continue Assign NameStore SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assert CompareEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Return ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Return Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num body Return NameLoad Raise decorator_list
N/A __future__ absolute_import __future__ division __future__ print_function __future__ unicode_literals builtins str N/A filecmp os sys traceback logging requests uuid N/A time random threading Lock N/A six N/A N/A six PY2 N/A N/A thread Queue Queue N/A N/A _thread thread queue Queue N/A synapseclient N/A synapseclient.utils utils N/A synapseclient.cache cache synapseclient.exceptions * synapseclient.utils MB GB synapseclient Activity Entity Project Folder File N/A integration integration schedule_for_cleanup setup N/A N/A module N/A N/A N/A N/A print N/A N/A print N/A ~ 60 N/A N/A print N/A N/A N/A os path basename __file__ N/A N/A print N/A ~ 60 N/A N/A module syn N/A integration syn N/A N/A module project N/A integration project N/A N/A N/A module syn test_parent N/A N/A N/A module syn store N/A Project name N/A str N/A N/A uuid uuid4 N/A N/A schedule_for_cleanup N/A N/A module syn test_parent N/A N/A N/A module syn test_keepRunning True N/A N/A N/A module syn test_errors N/A Queue N/A N/A N/A module syn test_runCountMutex N/A Lock N/A N/A N/A module syn test_threadsRunning 0 N/A teardown N/A N/A module N/A N/A N/A N/A N/A module syn test_parent N/A N/A N/A module syn test_keepRunning N/A N/A N/A module syn test_errors N/A N/A N/A module syn test_runCountMutex N/A N/A N/A module syn test_threadsRunning N/A test_threaded_access N/A N/A N/A N/A N/A Starts multiple threads to perform store and get calls randomly. N/A requests_log N/A N/A logging getLogger requests N/A requests_originalLevel N/A N/A requests_log getEffectiveLevel N/A N/A N/A requests_log setLevel N/A logging WARNING N/A N/A print Starting threads N/A store_thread N/A wrap_function_as_child_thread thread_keep_storing_one_File N/A get_thread N/A wrap_function_as_child_thread thread_get_files_from_Project N/A update_thread N/A wrap_function_as_child_thread thread_get_and_update_file_from_Project N/A N/A N/A thread start_new_thread store_thread N/A N/A N/A N/A thread start_new_thread store_thread N/A N/A N/A N/A thread start_new_thread store_thread N/A N/A N/A N/A thread start_new_thread store_thread N/A N/A N/A N/A thread start_new_thread get_thread N/A N/A N/A N/A thread start_new_thread get_thread N/A N/A N/A N/A thread start_new_thread get_thread N/A N/A N/A N/A thread start_new_thread update_thread N/A N/A N/A N/A thread start_new_thread update_thread N/A N/A N/A N/A thread start_new_thread update_thread N/A N/A N/A N/A time sleep 20 N/A N/A print Terminating threads N/A N/A syn test_keepRunning False N/A N/A N/A syn test_threadsRunning 0 N/A N/A N/A N/A time sleep 1 N/A N/A N/A requests_log setLevel requests_originalLevel N/A N/A collect_errors_and_fail N/A wrap_function_as_child_thread N/A N/A function N/A N/A N/A Wraps the given function so that it ties into the main thread. child_thread N/A N/A N/A N/A N/A N/A N/A N/A syn test_runCountMutex acquire N/A N/A syn test_threadsRunning 1 N/A N/A N/A N/A syn test_runCountMutex release N/A N/A N/A N/A function N/A N/A N/A Exception N/A N/A N/A N/A N/A syn test_errors put N/A N/A traceback format_exc N/A N/A N/A N/A syn test_runCountMutex acquire N/A N/A syn test_threadsRunning 1 N/A N/A N/A N/A syn test_runCountMutex release N/A N/A child_thread N/A collect_errors_and_fail N/A N/A N/A N/A N/A Pulls error traces from the error queue and fails if the queue is not empty. N/A failures N/A N/A i N/A range N/A N/A N/A syn test_errors qsize N/A N/A N/A N/A failures append N/A N/A N/A syn test_errors get N/A N/A N/A len failures 0 N/A N/A N/A SynapseError N/A N/A N/A join failures N/A thread_keep_storing_one_File N/A N/A N/A N/A N/A Makes one file and stores it over and over again. N/A path N/A N/A utils make_bogus_data_file N/A N/A schedule_for_cleanup path N/A myPrecious N/A File path parent N/A syn test_parent description This bogus file is MINE mwa hahahah N/A N/A syn test_keepRunning N/A N/A stored N/A store_catch_412_HTTPError myPrecious N/A N/A stored None N/A N/A myPrecious stored N/A N/A myPrecious N/A N/A syn get myPrecious N/A N/A sleep_for_a_bit N/A thread_get_files_from_Project N/A N/A N/A N/A N/A Continually polls and fetches items from the Project. N/A N/A syn test_keepRunning N/A N/A id N/A get_all_ids_from_Project N/A N/A N/A N/A sleep_for_a_bit N/A thread_get_and_update_file_from_Project N/A N/A N/A N/A N/A Fetches one item from the Project and updates it with a new file. N/A N/A syn test_keepRunning N/A N/A id N/A get_all_ids_from_Project N/A N/A N/A len id 0 N/A N/A N/A id N/A id N/A N/A N/A random randrange N/A len id N/A entity N/A N/A syn get id N/A path N/A N/A utils make_bogus_data_file N/A N/A schedule_for_cleanup path N/A N/A entity path path N/A entity N/A store_catch_412_HTTPError entity N/A N/A entity None N/A N/A N/A N/A N/A os stat N/A entity path N/A N/A os stat path N/A N/A sleep_for_a_bit N/A sleep_for_a_bit N/A N/A N/A N/A N/A Sleeps for a random amount of seconds between 1 and 5 inclusive. N/A N/A N/A time sleep N/A N/A random randint 1 5 N/A get_all_ids_from_Project N/A N/A N/A N/A N/A Fetches all currently available Synapse IDs from the parent Project. N/A others N/A N/A syn chunkedQuery N/A select id from entity where parentId=="%s" N/A N/A syn test_parent id N/A N/A N/A result N/A entity.id N/A result others N/A store_catch_412_HTTPError N/A N/A entity N/A N/A N/A Returns the stored Entity if the function succeeds or None if the 412 is caught. N/A N/A N/A N/A N/A syn store entity N/A N/A N/A SynapseHTTPError N/A err N/A N/A N/A N/A N/A err response status_code 412 N/A N/A None N/A N/A