Пример #1
0
    def test_ne_gdp_aia_2012_pass(self):
        """ Test nat_earth_adm0 function Anguilla."""
        ref_year = 2012
        res_year, res_val = nat_earth_adm0('AIA', 'GDP_MD_EST',
                                           'GDP_YEAR', SHP_FILE)

        ref_year = 2009
        ref_val = 1.754e+08
        self.assertEqual(res_year, ref_year)
        self.assertEqual(res_val, ref_val)
Пример #2
0
    def test_ne_income_grp_aia_pass(self):
        """ Test nat_earth_adm0 function Anguilla."""
        ref_year = 2012
        res_year, res_val = nat_earth_adm0('AIA', 'INCOME_GRP',
                                           shp_file=SHP_FILE)

        ref_year = 0
        ref_val = 3
        self.assertEqual(res_year, ref_year)
        self.assertEqual(res_val, ref_val)