def test_validate_engine(self): for e in rds.VALID_DB_ENGINES: rds.validate_engine(e) with self.assertRaises(ValueError): rds.validate_engine("bad_engine")