<s> from paste . debug . debugapp import SimpleApplication <EOL> from paste . fixture import TestApp <EOL> def test_fixture ( ) : <EOL> app = TestApp ( SimpleApplication ( ) ) <EOL> res = app . get ( '<STR_LIT:/>' , params = { '<STR_LIT:a>' : [ '<STR_LIT:1>' , '<STR_LIT:2>' ] } ) <EOL> assert ( res . request . environ [ '<STR_LIT>' ] == <EOL> '<STR_LIT>' ) <EOL> res = app . put ( '<STR_LIT:/>' ) <EOL> assert ( res . request . environ [ '<STR_LIT>' ] == <EOL> '<STR_LIT>' ) <EOL> res = app . delete ( '<STR_LIT:/>' ) <EOL> assert ( res . request . environ [ '<STR_LIT>' ] == <EOL> '<STR_LIT>' ) <EOL> class FakeDict ( object ) : <EOL> def items ( self ) : <EOL> return [ ( '<STR_LIT:a>' , '<STR_LIT>' ) , ( '<STR_LIT:a>' , '<STR_LIT>' ) ] <EOL> res = app . post ( '<STR_LIT>' , params = FakeDict ( ) ) <EOL> app . cookies [ '<STR_LIT>' ] = '<STR_LIT>' ; <EOL> app . cookies [ '<STR_LIT>' ] = '<STR_LIT>' ; <EOL> app . cookies [ '<STR_LIT>' ] = '<STR_LIT>' ; <EOL> res = app . get ( '<STR_LIT:/>' ) <EOL> hc = res . request . environ [ '<STR_LIT>' ] . split ( '<STR_LIT>' ) ; <EOL> assert ( '<STR_LIT>' in hc ) <EOL> assert ( '<STR_LIT>' in hc ) <EOL> assert ( '<STR_LIT>' in hc ) </s>
