def _test_totalpop(self, obj, known_2000, known_2010):
        known_delta = known_2010 - known_2000
        known_pct = float(known_delta) / float(known_2000)

        self.assertEqual(float(obj['data']['2000']["P1"]['P001001']), known_2000)
        self.assertEqual(float(obj['data']['2010']["P1"]['P001001']), known_2010)
        self.assertEqual(float(obj['data']['delta']["P1"]['P001001']), known_delta)
        self.assertAlmostEqual(
            float(obj['data']['pct_change']["P1"]['P001001']),
            known_pct
        )
Shortcut to test "total population" field from the P1 (race)
dataset/ETHPy150Open ireapps/census/dataprocessing/tests_sf.py/TestSimpleGeographies._test_totalpop