Module Import alias alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareGt Call NameLoad NameLoad Num Call NameLoad NameLoad Assert CompareIn AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad attr Assert CompareEq NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad keyword NameLoad Assert CompareEq NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Assert CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr keyword Dict Str Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assert CompareIn Str NameLoad NameLoad Assert CompareIn Str NameLoad NameLoad Assert CompareIn Str NameLoad NameLoad Assert CompareIn Str NameLoad NameLoad Assert CompareIn Str NameLoad NameLoad Assert CompareIn Str NameLoad NameLoad Assert CompareIn Str NameLoad NameLoad Assert CompareIn Str NameLoad NameLoad Assert CompareEq SubscriptLoad NameLoad Index Str Str SubscriptLoad NameLoad Index Str Assert CompareEq SubscriptLoad NameLoad Index Str Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr keyword Dict Str Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assert CompareEq SubscriptLoad NameLoad Index Str Str SubscriptLoad NameLoad Index Str Assert CompareEq SubscriptLoad NameLoad Index Str Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assert CompareEq SubscriptLoad NameLoad Index Str Str SubscriptLoad NameLoad Index Str Assert CompareEq SubscriptLoad NameLoad Index Str Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr keyword Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assert CompareEq SubscriptLoad NameLoad Index Str Str SubscriptLoad NameLoad Index Str Assert CompareEq SubscriptLoad NameLoad Index Str Call NameLoad NameLoad SubscriptLoad NameLoad Index Str decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A random unittest ofs.remote.reststore RESTOFS ofs OFSException StringIO StringIO N/A os N/A TEST_TEXT I am a banana N/A BINARY_FILE_NAME N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ binary.data TestRESTOFS N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self bucket_name ofs-test-bucket N/A N/A self host_name http://127.0.0.1:5000/ N/A N/A self ofs N/A RESTOFS N/A self host_name N/A N/A N/A N/A self ofs claim_bucket N/A self bucket_name N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A self ofs _del_bucket N/A self bucket_name N/A _makefp N/A N/A self N/A N/A N/A N/A StringIO TEST_TEXT N/A test_exists N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A N/A N/A self ofs exists N/A self bucket_name N/A test_claim_bucket N/A N/A self N/A N/A N/A bucket_name fresh-test-bucket N/A N/A N/A N/A self ofs _del_bucket bucket_name N/A N/A N/A self assertFalse N/A N/A N/A self ofs exists bucket_name N/A N/A N/A self assertTrue N/A N/A N/A self ofs claim_bucket bucket_name N/A N/A N/A self assertTrue N/A N/A N/A self ofs exists bucket_name N/A N/A N/A self assertFalse N/A N/A N/A self ofs claim_bucket bucket_name N/A N/A N/A N/A self ofs _del_bucket bucket_name N/A N/A N/A self assertFalse N/A N/A N/A self ofs exists bucket_name N/A test_list_buckets N/A N/A self N/A N/A N/A buckets N/A b N/A b N/A N/A N/A self ofs list_buckets N/A N/A N/A len buckets 0 N/A len buckets N/A N/A N/A self bucket_name buckets buckets N/A test_stream_write_and_read N/A N/A self N/A N/A N/A name my_data.txt N/A N/A N/A N/A self ofs put_stream N/A self bucket_name name N/A N/A self _makefp N/A text N/A N/A N/A N/A N/A self ofs get_stream N/A self bucket_name name read N/A N/A text TEST_TEXT text N/A text N/A N/A N/A self ofs get_stream N/A self bucket_name name as_stream False N/A N/A text TEST_TEXT text N/A test_binary_write_and_read N/A N/A self N/A N/A N/A name binary.data N/A fh N/A file BINARY_FILE_NAME rb N/A N/A N/A N/A self ofs put_stream N/A self bucket_name name fh N/A N/A N/A fh close N/A test_stream_delete N/A N/A self N/A N/A N/A name my_data.txt N/A N/A N/A N/A self ofs put_stream N/A self bucket_name name N/A N/A self _makefp N/A N/A N/A N/A N/A self ofs get_stream N/A self bucket_name name None name N/A N/A N/A N/A self ofs del_stream N/A self bucket_name name N/A N/A N/A self assertRaises OFSException N/A N/A self ofs get_stream N/A self bucket_name name N/A test_meta_save_read N/A N/A self N/A N/A N/A name my_data.txt N/A N/A N/A N/A self ofs put_stream N/A self bucket_name name N/A N/A self _makefp params N/A hello foo world bar N/A meta N/A N/A N/A self ofs get_metadata N/A self bucket_name name N/A N/A _owner meta meta N/A N/A _creation_time meta meta N/A N/A _last_modified meta meta N/A N/A _checksum meta meta N/A N/A _format meta meta N/A N/A _bucket meta meta N/A N/A _label meta meta N/A N/A _content_length meta meta N/A N/A N/A meta N/A hello world N/A meta N/A hello N/A N/A N/A meta N/A foo bar N/A meta N/A bar N/A test_meta_update N/A N/A self N/A N/A N/A name my_data.txt N/A N/A N/A N/A self ofs put_stream N/A self bucket_name name N/A N/A self _makefp params N/A hello foo world bar N/A meta N/A N/A N/A self ofs get_metadata N/A self bucket_name name N/A N/A N/A meta N/A hello world N/A meta N/A hello N/A N/A N/A meta N/A foo bar N/A meta N/A bar N/A N/A N/A N/A self ofs update_metadata N/A self bucket_name name N/A hello foo mars qux N/A meta N/A N/A N/A self ofs get_metadata N/A self bucket_name name N/A N/A N/A meta N/A hello mars N/A meta N/A hello N/A N/A N/A meta N/A foo qux N/A meta N/A bar N/A test_meta_special_fields N/A N/A self N/A N/A N/A name my_data.txt N/A N/A N/A N/A self ofs put_stream N/A self bucket_name name N/A N/A self _makefp params N/A _format application/x.banana N/A meta N/A N/A N/A self ofs get_metadata N/A self bucket_name name N/A N/A N/A meta N/A _format application/x.banana N/A meta N/A _format N/A N/A N/A meta N/A _content_length N/A len TEST_TEXT N/A meta N/A _content_length N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main