def test_US_Cities(self): from scaffolding.library.cities import TopUsCities top_us = TopUsCities() e = EveryValue(top_us()) for city in ['New York, NY', 'Los Angeles, CA', 'Chicago, IL', 'Houston, TX', 'Phoenix, AZ']: self.assertEqual(e.next(), city)
def test_everyValue(self): all = ['a', 'b', 'c', 'd', 'e'] e = EveryValue(all) for expected in all: self.assertEqual(e.next(), expected)