

def test_state_leg_filename_primary_racewide_results(self):
    raw_url = 'http://www.elections.state.md.us/elections/2012/election_data/State_Legislative_Districts_Democratic_2012_Primary.csv'
    actual = self.datasource._generate_state_leg_filename(raw_url, '2012-04-03')
    self.assertEquals('20120403__md__democratic__primary__state_legislative.csv', actual)

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