def test_validate_backup_retention_period(self): for d in (1, 10, 15, 35): rds.validate_backup_retention_period(d) with self.assertRaisesRegexp(ValueError, " cannot be larger than 35 "): rds.validate_backup_retention_period(40) rds.validate_backup_retention_period(10)
def test_validate_backup_retention_period(self): for d in (1, 10, 15, 35): rds.validate_backup_retention_period(d) with self.assertRaisesRegexp(ValueError, " cannot be larger than 35 "): rds.validate_backup_retention_period(40) rds.validate_backup_retention_period(10)