def test_interacting_iterators():
 class A(object, ):
  def __iter__(cls):
   return cls
  def next(self):
   return 3
 class B(object, ):
  def __iter__(cls):
   return A()
  def next(self):
   return 2
 b = B()
 AreEqual(next(b), 2)

def test_interacting_iterators ( ) : class A ( object , ) : def __iter__ ( cls ) : return cls def next ( self ) : return 3 class B ( object , ) : def __iter__ ( cls ) : return A ( ) def next ( self ) : return 2 b = B ( ) AreEqual ( next ( b ) , 2 )
this test is similar to how jinga2 fails .