def METHOD_NAME(self):
    candidate = {
        'office': 'P', 'office_full': 'President', 'state': 'US',
        'district': None}
    assert (filters.get_election_url(candidate, 2012)
            == '/data/elections/president/2012')
    candidate = {
        'office': 'S', 'office_full': 'Senate', 'state': 'NJ',
        'district': None}
    assert (filters.get_election_url(candidate, 2012)
            == '/data/elections/senate/NJ/2012')
    candidate = {
        'office': 'S', 'office_full': 'Senate', 'state': 'NJ',
        'district': '00'}
    assert (filters.get_election_url(candidate, 2012)
            == '/data/elections/senate/NJ/2012')
    candidate = {
        'office': 'H', 'office_full': 'House', 'state': 'NJ',
        'district': '02'}
    assert (filters.get_election_url(candidate, 2012)
            == '/data/elections/house/NJ/02/2012')