def testGenerators(self): """equals works for generators""" def f(): yield 1 yield "hello" def g(): yield 1 yield "hello" assert Iter.equal(f(), g())