test_azure_provider.py 1.0 KB

123456789101112131415161718192021222324252627
  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,
  12. 'Block Store should not be None')
  13. block_store = self.provider.block_store
  14. self.assertTrue(block_store is not None,
  15. 'Block Store should not be None')
  16. object_store = self.provider.object_store
  17. self.assertTrue(object_store is not None,
  18. 'Object Store should not be None')
  19. security = self.provider.security
  20. self.assertTrue(security is not None, 'Security should not be None')