#NEWLINE# def test_iterating_response( ) : #NEWLINE# #INDENT# obj = { #NEWLINE# #INDENT# 'hi' : 'people' , #NEWLINE# #UNINDENT# } #NEWLINE# secondobj = { #NEWLINE# #INDENT# 'bye' : 'friends' , #NEWLINE# #UNINDENT# } #NEWLINE# wsgiapp = RegistryUsingIteratorApp ( regobj , obj ) #NEWLINE# wsgiapp = RegistryManager ( wsgiapp ) #NEWLINE# wsgiapp = RegistryMiddleMan ( wsgiapp , regobj , secondobj , 0 ) #NEWLINE# wsgiapp = RegistryManager ( wsgiapp ) #NEWLINE# app = TestApp ( wsgiapp ) #NEWLINE# res = app . get ( '/' ) #NEWLINE# assert ( 'Hello world' in res ) #NEWLINE# assert ( 'The variable is' in res ) #NEWLINE# assert ( "{'hi': 'people'}" in res ) #NEWLINE# assert ( "InsertValue at depth 0 is {'bye': 'friends'}" in res ) #NEWLINE# assert ( "AppendValue at depth 0 is {'bye': 'friends'}" in obj )