def test_detail_using_name(self):
        candidate = self.finance.president.detail("obama")
        url = "http://api.nytimes.com/svc/elections/us/v3/finances/2012/president/candidates/obama.json?api-key=%s" % API_KEY
        self.check_response(candidate, url, parse=lambda r: r['results'][0])
dataset/ETHPy150Open NYTimes/nytcampfin/test.py/PresidentTest.test_detail_using_name/original