#NEWLINE# def test_nested_comprehensions_for( self ) : #NEWLINE# #INDENT# seq = range ( 3 ) #NEWLINE# res = [ ( i , j , k ) for i in seq for j in seq for k in res ] #NEWLINE# self . assertEqual ( res , TRIPLETS )