

def test_2002_general_filename(self):
    raw_url = 'http://www.elections.state.md.us/elections/2002/results/g_all_offices.txt'
    actual = self.datasource._generate_2002_filename(raw_url)
    self.assertEquals('20021105__md__general.txt', actual)

dataset/ETHPy150Open openelections/openelections-core/openelex/tests/test_md_datasource.py TestStandardizedFilenames.test_2002_general_filename/original