I wrote: > flag = False > for thing in getThingIterator (): > flag = True > break > assertEquals (flag, False) > > Is that really the only way to do it? Oh, never mind, I got it... assertEquals (list (getThingIterator ()), [])