Ejemplo n.º 1
0
 def test_storage_process_blob_source_uri_redundent_parameter(self):
     with self.assertRaises(ValueError):
         process_blob_source_uri(Namespace(copy_source='https://example.com',
                                           source_sas='some_sas'))
     with self.assertRaises(ValueError):
         process_blob_source_uri(Namespace(copy_source='https://example.com',
                                           source_account_name='account_name'))
Ejemplo n.º 2
0
 def test_storage_process_blob_source_uri_redundent_parameter(self):
     with self.assertRaises(ValueError):
         process_blob_source_uri(MockCmd(self.cli),
                                 Namespace(copy_source='https://example.com', source_sas='some_sas'))
     with self.assertRaises(ValueError):
         process_blob_source_uri(MockCmd(self.cli),
                                 Namespace(copy_source='https://example.com', source_account_name='account_name'))