def check_chamber(chamber):
    """Validate that chamber is house or senate"""
    if str(chamber).lower() not in ('house', 'senate'):
        raise TypeError('chamber must be either "house" or "senate"')
