Module Expr Str ImportFrom alias Import alias Import alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore ListComp AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd ListLoad Str Str NameLoad ListLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr BinOpMod Call AttributeLoad NameLoad attr Str Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore ListComp AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore ListComp Call NameLoad Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd ListLoad Str Str NameLoad ListLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str Str Call NameLoad NameLoad keyword Call AttributeLoad Str attr TupleLoad NameLoad NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list Call NameLoad NameLoad keyword Num keyword Num Expr Call NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str NameLoad Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list decorator_list
N/A N/A Integration tests for mv command. __future__ absolute_import N/A os N/A gslib.tests.testcase testcase gslib.tests.util ObjectToURI suri gslib.tests.util SequentialAndParallelTransfer gslib.util Retry TestMv N/A N/A testcase GsUtilIntegrationTestCase N/A N/A Integration tests for mv command. test_moving N/A N/A self N/A N/A N/A Tests moving two buckets, one with 2 objects and one with 0 objects. N/A bucket1_uri N/A N/A self CreateBucket test_objects 2 N/A N/A N/A self AssertNObjectsInBucket bucket1_uri 2 N/A bucket2_uri N/A N/A self CreateBucket N/A N/A N/A self AssertNObjectsInBucket bucket2_uri 0 N/A objs N/A N/A N/A N/A bucket1_uri clone_replace_key key versionless_uri N/A key N/A N/A bucket1_uri list_bucket N/A cmd N/A N/A N/A -m mv objs N/A N/A suri bucket2_uri N/A stderr N/A N/A self RunGsUtil cmd return_stderr True N/A N/A N/A self assertGreaterEqual N/A N/A stderr count Copying 2 N/A N/A N/A self assertLessEqual N/A N/A stderr count Copying 4 N/A N/A N/A self assertEqual N/A N/A N/A stderr count Copying 2 0 N/A N/A N/A self assertEqual N/A N/A stderr count Removing 2 N/A N/A N/A self AssertNObjectsInBucket bucket1_uri 0 N/A N/A N/A self AssertNObjectsInBucket bucket2_uri 2 N/A objs N/A N/A N/A N/A bucket2_uri clone_replace_key key versionless_uri N/A key N/A N/A bucket2_uri list_bucket N/A obj1 N/A objs N/A 0 N/A N/A N/A self RunGsUtil N/A rm obj1 N/A N/A N/A self AssertNObjectsInBucket bucket1_uri 0 N/A N/A N/A self AssertNObjectsInBucket bucket2_uri 1 N/A objs N/A N/A suri N/A N/A bucket2_uri clone_replace_key key N/A key N/A N/A bucket2_uri list_bucket N/A cmd N/A N/A N/A -m mv objs N/A N/A suri bucket1_uri N/A stderr N/A N/A self RunGsUtil cmd return_stderr True N/A N/A N/A self assertGreaterEqual N/A N/A stderr count Copying 1 N/A N/A N/A self assertLessEqual N/A N/A stderr count Copying 2 N/A N/A N/A self assertEqual N/A N/A stderr count Removing 1 N/A N/A N/A self AssertNObjectsInBucket bucket1_uri 1 N/A N/A N/A self AssertNObjectsInBucket bucket2_uri 0 N/A test_move_dir_to_bucket N/A N/A self N/A N/A N/A Tests moving a local directory to a bucket. N/A bucket_uri N/A N/A self CreateBucket N/A dir_to_move N/A N/A self CreateTempDir test_files 2 N/A N/A N/A self RunGsUtil N/A mv dir_to_move N/A suri bucket_uri N/A N/A N/A self AssertNObjectsInBucket bucket_uri 2 N/A test_stdin_args N/A N/A self N/A N/A N/A Tests mv with the -I option. N/A tmpdir N/A N/A self CreateTempDir N/A fpath1 N/A N/A self CreateTempFile tmpdir tmpdir contents data1 N/A fpath2 N/A N/A self CreateTempFile tmpdir tmpdir contents data2 N/A bucket_uri N/A N/A self CreateBucket N/A N/A N/A self RunGsUtil N/A mv -I N/A suri bucket_uri stdin N/A N/A join N/A fpath1 fpath2 _Check1 N/A N/A N/A N/A N/A stdout N/A N/A self RunGsUtil N/A ls N/A suri bucket_uri return_stdout True N/A N/A N/A self assertIn N/A N/A N/A os path basename fpath1 stdout N/A N/A N/A self assertIn N/A N/A N/A os path basename fpath2 stdout N/A N/A N/A self assertNumLines stdout 2 N/A N/A Retry AssertionError tries 3 timeout_secs 1 N/A N/A _Check1 N/A SequentialAndParallelTransfer test_mv_no_clobber N/A N/A self N/A N/A N/A Tests mv with the -n option. N/A fpath1 N/A N/A self CreateTempFile contents data1 N/A bucket_uri N/A N/A self CreateBucket N/A object_uri N/A N/A self CreateObject bucket_uri bucket_uri contents data2 N/A stderr N/A N/A self RunGsUtil N/A mv -n fpath1 N/A suri object_uri return_stderr True N/A N/A N/A self assertIn N/A Skipping existing item: %s N/A suri object_uri stderr N/A N/A N/A self assertNotIn N/A Removing %s N/A suri fpath1 stderr N/A contents N/A N/A self RunGsUtil N/A cat N/A suri object_uri return_stdout True N/A N/A N/A self assertEqual contents data2 N/A N/A