def test_bounty_index_terms(self): """Test bounty index terms list.""" index_terms = bounty_index_terms(self.bounty) assert len(index_terms) == 15 assert 'USDT' in index_terms assert set([self.bounty_payer_handle, self.bounty_earner_handle, 'gitcoinco']).issubset(set(index_terms)) assert set(['Cuyahoga Falls', 'United States', 'North America']).issubset(set(index_terms)) assert set(['London', 'United Kingdom', 'Europe']).issubset(set(index_terms)) assert set(['Australia', 'Oceania']).issubset(set(index_terms)) assert set(['python', 'shell']).issubset(set(index_terms))
def test_bounty_index_terms(self): """Test bounty index terms list.""" index_terms = bounty_index_terms(self.bounty) assert len(index_terms) == 12 assert 'USDT' in index_terms assert {self.bounty_payer_handle, self.bounty_earner_handle, 'gitcoinco'}.issubset(set(index_terms)) ''' these asserts are not worth testing as they break every time the underlying geoip data gets updated assert {'Tallmadge', 'United States', 'North America'}.issubset(set(index_terms)) assert {'London', 'United Kingdom', 'Europe'}.issubset(set(index_terms)) assert {'Australia', 'Oceania'}.issubset(set(index_terms)) ''' assert {'python', 'shell'}.issubset(set(index_terms))