import json import unittest import uuid from cloudbridge.cloud.interfaces import TestMockHelperMixin from test.helpers import ProviderTestBase import test.helpers as helpers class AzureProviderTestCase(ProviderTestBase): def __init__(self, methodName, provider): super(AzureProviderTestCase, self).__init__( methodName=methodName, provider=provider) def test_azure_provider(self): with self.assertRaises(Exception): compute = self.provider.compute self.assertTrue(compute is not None, 'Compute should not be None') with self.assertRaises(Exception): network = self.provider.network self.assertTrue(network is not None, 'Network should not be None') block_store = self.provider.block_store self.assertTrue(block_store is not None, 'Block Store should not be None') block_store = self.provider.block_store self.assertTrue(block_store is not None, 'Block Store should not be None') object_store = self.provider.object_store self.assertTrue(object_store is not None, 'Object Store should not be None') security = self.provider.security self.assertTrue(security is not None, 'Security should not be None')