class SchedulerManagementServiceTest(AzureTestCase): def setUp(self): self.sms = SchedulerManagementService( credentials.getSubscriptionId(), credentials.getManagementCertFile()) set_service_options(self.sms) def tearDown(self): self.cleanup() return super(SchedulerManagementServiceTest, self).tearDown() def cleanup(self): pass #--Operations for scheduler ---------------------------------------- def test_list_cloud_services(self): # Arrange # Act result = self.sms.list_cloud_services() # Assert self.assertIsNotNone(result) self.assertIsInstance(result, CloudServices) for cs in result: self.assertIsNotNone(cs) self.assertIsInstance(cs, CloudService)
class SchedulerManagementServiceTest(AzureTestCase): def setUp(self): self.sms = SchedulerManagementService(credentials.getSubscriptionId(), credentials.getManagementCertFile()) set_service_options(self.sms) def tearDown(self): self.cleanup() return super(SchedulerManagementServiceTest, self).tearDown() def cleanup(self): pass #--Operations for scheduler ---------------------------------------- def test_list_cloud_services(self): # Arrange # Act result = self.sms.list_cloud_services() # Assert self.assertIsNotNone(result) self.assertIsInstance(result, CloudServices) for cs in result: self.assertIsNotNone(cs) self.assertIsInstance(cs, CloudService)
def setUp(self): self.sms = SchedulerManagementService( credentials.getSubscriptionId(), credentials.getManagementCertFile()) set_service_options(self.sms)
def setUp(self): self.sms = SchedulerManagementService(credentials.getSubscriptionId(), credentials.getManagementCertFile()) set_service_options(self.sms)