def _reporting_level_from_url(self, url):
        parts = urlparse.urlparse(url)
        root, ext = splitext(parts.path)
        root_lower = root.lower()
        if "county" in root_lower:
            return 'county'
        else:
            return 'state'
dataset/ETHPy150Open openelections/openelections-core/openelex/us/wa/datasource.py/Datasource._reporting_level_from_url/original