Module Expr Str Import alias Import alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Str keyword Dict AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Str keyword Dict AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Str While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Break AugAssignAdd NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Str keyword Dict AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Str keyword Dict AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Str keyword Dict AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Str While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num If UnaryOpNot NameLoad body Break AugAssignAdd NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Str While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num If UnaryOpNot NameLoad body Break AugAssignAdd NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A Tests for gcs_file_seg_reader. N/A pickle N/A unittest google.appengine.datastore datastore_stub_util N/A cloudstorage google.appengine.ext testbed mapreduce output_writers mapreduce.tools gcs_file_seg_reader GCSFileSegReaderTest N/A N/A unittest TestCase N/A N/A Test GCSFileSegReader. setUp N/A N/A self N/A N/A N/A N/A N/A N/A super GCSFileSegReaderTest self setUp N/A N/A self testbed N/A N/A testbed Testbed N/A N/A N/A N/A self testbed activate N/A N/A N/A N/A self testbed init_app_identity_stub N/A N/A N/A N/A self testbed init_blobstore_stub N/A policy N/A N/A datastore_stub_util PseudoRandomHRConsistencyPolicy probability 1 N/A N/A N/A N/A self testbed init_datastore_v3_stub consistency_policy policy N/A N/A N/A N/A self testbed init_memcache_stub N/A N/A N/A N/A self testbed init_urlfetch_stub N/A N/A self writer_cls N/A output_writers _GoogleCloudStorageOutputWriter N/A N/A self seg_prefix /bucket/prefix- N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A self testbed deactivate N/A N/A N/A N/A super GCSFileSegReaderTest self tearDown N/A testMissingMetadata N/A N/A self N/A N/A N/A f N/A N/A cloudstorage open N/A N/A self seg_prefix 0 w N/A N/A N/A f write abc N/A N/A N/A f close N/A N/A N/A self assertRaises ValueError N/A gcs_file_seg_reader _GCSFileSegReader N/A self seg_prefix 0 N/A testInvalidMetadata N/A N/A self N/A N/A N/A f N/A N/A cloudstorage open N/A N/A self seg_prefix 0 w options N/A N/A N/A self writer_cls _VALID_LENGTH 10 N/A N/A N/A f write abc N/A N/A N/A f close N/A N/A N/A self assertRaises ValueError N/A gcs_file_seg_reader _GCSFileSegReader N/A self seg_prefix 0 N/A ReadOneFileTest N/A N/A self read_size N/A N/A N/A f N/A N/A cloudstorage open N/A N/A self seg_prefix 0 w options N/A N/A N/A self writer_cls _VALID_LENGTH 5 N/A N/A N/A f write 1234567 N/A N/A N/A f close N/A r N/A N/A gcs_file_seg_reader _GCSFileSegReader N/A self seg_prefix 0 N/A result N/A True N/A N/A tmp N/A N/A r read read_size N/A N/A tmp N/A N/A N/A result tmp N/A N/A N/A self assertEqual 12345 result N/A N/A N/A self assertEqual 5 N/A N/A r tell N/A testReadBig N/A N/A self N/A N/A N/A Test read bigger than valid offset. N/A N/A N/A self ReadOneFileTest 10 N/A testReadSmall N/A N/A self N/A N/A N/A Test read smaller than valid offset. N/A N/A N/A self ReadOneFileTest 1 N/A testReadEqual N/A N/A self N/A N/A N/A Test read size equals valid offset. N/A N/A N/A self ReadOneFileTest 5 N/A setUpMultipleFile N/A N/A self N/A N/A N/A f N/A N/A cloudstorage open N/A N/A self seg_prefix 0 w options N/A N/A N/A self writer_cls _VALID_LENGTH 5 N/A N/A N/A f write 12345garbage N/A N/A N/A f close N/A f N/A N/A cloudstorage open N/A N/A self seg_prefix 1 w options N/A N/A N/A self writer_cls _VALID_LENGTH 5 N/A N/A N/A f write 67890garbage N/A N/A N/A f close N/A f N/A N/A cloudstorage open N/A N/A self seg_prefix 2 w options N/A N/A N/A self writer_cls _VALID_LENGTH 6 N/A N/A N/A f write 123456garbage N/A N/A N/A f close N/A testReadMultipleFiles N/A N/A self N/A N/A N/A N/A N/A self setUpMultipleFile N/A r N/A N/A gcs_file_seg_reader _GCSFileSegReader N/A self seg_prefix 2 N/A result N/A True N/A N/A tmp N/A N/A r read 1 N/A N/A tmp N/A N/A N/A result tmp N/A N/A N/A self assertEqual 1234567890123456 result N/A N/A N/A self assertEqual N/A len result N/A N/A r tell N/A testPickle N/A N/A self N/A N/A N/A N/A N/A self setUpMultipleFile N/A r N/A N/A gcs_file_seg_reader _GCSFileSegReader N/A self seg_prefix 2 N/A result N/A True N/A N/A r N/A N/A pickle loads N/A N/A pickle dumps r N/A tmp N/A N/A r read 1 N/A N/A tmp N/A N/A N/A result tmp N/A N/A N/A self assertEqual N/A len result N/A N/A r tell N/A N/A N/A self assertEqual 1234567890123456 result N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main