def test_fred_category_related(self): fred.related(32073) expected = 'http://api.stlouisfed.org/fred/category/related' params = {'api_key': '', 'category_id': 32073, 'file_type': 'json'} self.get.assert_called_with(expected, params=params)
# Interact with economic data categories. x1 = fred.category() #print x1 # x2 = fred.categories(24) #print x2 # #fred.children(24) x3 = fred.children(24) #print x3 for k, v in x3.items(): print v[0] print v[1] y = fred.related(32073) #print y # z = fred.category(series=True) print z # #fred.category_series(123) # # ## Interact with economic data releases. #fred.releases() # #fred.release(250) # #fred.dates() #
def test_fred_category_related(self): fred.related(32073) expected = 'https://api.stlouisfed.org/fred/category/related' params = {'api_key': '', 'category_id': 32073, 'file_type': 'json'} self.get.assert_called_with(expected, params=params)
def test_fred_category_related(self): fred.related() expected = 'http://api.stlouisfed.org/fred/category/related' params = {'api_key': ''} self.get.assert_called_with(expected, params=params)