test_azure_provider.py 985 B

123456789101112131415161718192021222324
  1. from azure_test.helpers import ProviderTestBase
  2. class AzureProviderTestCase(ProviderTestBase):
  3. def test_azure_provider(self):
  4. with self.assertRaises(Exception):
  5. compute = self.provider.compute
  6. self.assertTrue(compute is not None, 'Compute should not be None')
  7. with self.assertRaises(Exception):
  8. network = self.provider.network
  9. self.assertTrue(network is not None, 'Network should not be None')
  10. block_store = self.provider.block_store
  11. self.assertTrue(block_store is not None, 'Block Store should not be None')
  12. block_store = self.provider.block_store
  13. self.assertTrue(block_store is not None, 'Block Store should not be None')
  14. object_store = self.provider.object_store
  15. self.assertTrue(object_store is not None, 'Object Store should not be None')
  16. security = self.provider.security
  17. self.assertTrue(security is not None, 'Security should not be None')