Example #1
0
 def test_read(self):
   df = census_data_table.read(
     'data/census/PEP_2017_PEPANNRSIP.US12A_with_ann.csv')
   self.assertEqual(len(df), 769)
Example #2
0
 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'))
Example #3
0
 def test_get_state_key(self):
   self.assertEqual(census_data_table.get_state_key(), 'state')
Example #4
0
 def test_get_city_key(self):
   self.assertEqual(census_data_table.get_city_key(), 'city')
Example #5
0
 def test_get_exact_matching_key(self):
   self.assertEqual(census_data_table.get_exact_matching_key(),
                    'Target Geo Id2')