Exemple #1
0
 def test_print_operation(self):
     filename = mock.Mock()
     filename.operation_name = 'upload'
     filename.src = r'e:\foo'
     filename.src_type = 'local'
     filename.dest = r's3://foo'
     filename.dest_type = 's3'
     message = print_operation(filename, failed=False)
     self.assertIn(r'e:\foo', message)
Exemple #2
0
 def test_print_operation(self):
     filename = mock.Mock()
     filename.operation_name = 'upload'
     filename.src = r'e:\foo'
     filename.src_type = 'local'
     filename.dest = r's3://foo'
     filename.dest_type = 's3'
     message = print_operation(filename, failed=False)
     self.assertIn(r'e:\foo', message)