def test_nfw_BEL_pass(self): """ Test total wealth-to-gdp factor with Belgium.""" res_year, res_val = wealth2gdp('BEL', False) ref_year = 2016 ref_val = 4.88758 self.assertEqual(res_year, ref_year) self.assertEqual(res_val, ref_val)
def test_nfw_SUR_pass(self): """ Test non-financial wealth-to-gdp factor with Suriname.""" res_year, res_val = wealth2gdp('SUR') ref_year = 2016 ref_val = 0.73656 self.assertEqual(res_year, ref_year) self.assertEqual(res_val, ref_val)
def test_nfw_LBY_pass(self): """ Test missing factor with Libya.""" _, res_val = wealth2gdp('LBY') self.assertTrue(np.isnan(res_val))