def test_raw_download_state(self): self.assertEqual( censusdata._download('acs5', 2015, { 'get': 'NAME,B01001_001E', 'for': 'state:17' }), { 'NAME': ['Illinois'], 'B01001_001E': ['12873761'], 'state': ['17'] })
def test_raw_download_place(self): self.assertEqual( censusdata._download('acs5', 2015, { 'get': 'NAME,B01001_001E', 'for': 'place:53000', 'in': 'state:06' }), { 'NAME': ['Oakland city, California'], 'B01001_001E': ['408073'], 'state': ['06'], 'place': ['53000'] })