

def test_ex_get_backup_details_for_target_DISABLED(self):
    DimensionDataMockHttp.type = 'DISABLED'
    with self.assertRaises(DimensionDataAPIException) as context:
        self.driver.ex_get_backup_details_for_target('e75ead52-692f-4314-8725-c8a4f4d13a87')
    self.assertEqual(context.exception.code, 'ERROR')
    self.assertEqual(context.exception.msg, 'Server e75ead52-692f-4314-8725-c8a4f4d13a87 has not been provisioned for backup')

dataset/ETHPy150Open apache/libcloud/libcloud/test/backup/test_dimensiondata.py DimensionDataTests.test_ex_get_backup_details_for_target_DISABLED/original