

@patch('openelex.base.datasource.elec_api.find')
def test_target_urls_default(self, mock_elec_find):
    mock_elec_find.return_value = md_data['objects']
    target_urls = self.datasource.target_urls()
    expected_urls = ['http://www.elections.state.md.us/elections/2012/election_data/Allegany_County_Democratic_2012_Primary.csv', 'http://www.elections.state.md.us/elections/2012/election_data/Allegany_By_Precinct_Democratic_2012_Primary.csv', 'http://www.elections.state.md.us/elections/2012/election_data/State_Legislative_Districts_2012_General.csv', 'http://www.elections.state.md.us/elections/2004/election_data/State_Legislative_Districts_General_2004.csv', 'http://www.elections.state.md.us/elections/2000/election_data/State_Legislative_Districts_General_2000.csv', 'http://www.elections.state.md.us/elections/2002/results/g_all_offices.txt', 'http://www.elections.state.md.us/elections/2002/results/p_all_offices.txt']
    for url in expected_urls:
        self.assertIn(url, target_urls)

dataset/ETHPy150Open openelections/openelections-core/openelex/tests/test_md_datasource.py TestTargetUrls.test_target_urls_default/original