def test_read(self): df = census_data_table.read( 'data/census/PEP_2017_PEPANNRSIP.US12A_with_ann.csv') self.assertEqual(len(df), 769)
def test_get_population_key(self): self.assertEqual( census_data_table.get_population_key(), get_header('Population Estimate (as of July 1) - 2017', 'census_2017'))
def test_get_state_key(self): self.assertEqual(census_data_table.get_state_key(), 'state')
def test_get_city_key(self): self.assertEqual(census_data_table.get_city_key(), 'city')
def test_get_exact_matching_key(self): self.assertEqual(census_data_table.get_exact_matching_key(), 'Target Geo Id2')