def test_should_be_able_to_specify_a_section_in_most_popular(self): target_section = 'commentisfree' fetcher = MostSharedFetcher(self.stub_client, section=target_section) params = fetcher.build_params(120) self.assertTrue('section' in params, 'Section is not present in the params') self.assertEquals(target_section, params['section'])
def test_should_be_able_to_specify_a_section_in_most_popular(self): target_section = 'commentisfree' fetcher = MostSharedFetcher(self.stub_client, section=target_section) params = fetcher.build_params(120) self.assertTrue('section' in params, 'Section is not present in the params') self.assertEquals(target_section, params['section'])
def test_should_be_able_to_specify_countries_in_most_popular(self): fetcher = MostSharedFetcher(self.stub_client, country='us') params = fetcher.build_params(120) self.assertTrue('country' in params, 'Country not present in params') self.assertEquals('us', params['country'])
def test_should_be_able_to_specify_countries_in_most_popular(self): fetcher = MostSharedFetcher(self.stub_client, country='us') params = fetcher.build_params(120) self.assertTrue('country' in params, 'Country not present in params') self.assertEquals('us', params['country'])