

def test_ex_list_available_storage_policies(self):
    target = answer.driver.list_targets()[0]
    answer = self.driver.ex_list_available_storage_policies(target)
    self.assertEqual(len(answer), 1)
    self.assertEqual(answer[0].name, '30 Day Storage Policy + Secondary Copy')
    self.assertEqual(answer[0].retention_period, 30)
    self.assertEqual(answer[0].secondary_location, 'Primary')

dataset/ETHPy150Open apache/libcloud/libcloud/test/backup/test_dimensiondata.py DimensionDataTests.test_ex_list_available_storage_policies/VarMisuse@12/18 `self`->`answer`