<s> """<STR_LIT>""" <EOL> """<STR_LIT>""" <EOL> """<STR_LIT>""" <EOL> import juno <EOL> juno . init ( { '<STR_LIT>' : False , '<STR_LIT>' : '<STR_LIT>' , '<STR_LIT>' : False , '<STR_LIT>' : False , <EOL> '<STR_LIT>' : False } ) <EOL> @ juno . get ( '<STR_LIT>' ) <EOL> def x1 ( web ) : return <EOL> @ juno . get ( '<STR_LIT>' ) <EOL> def x2 ( web ) : juno . status ( <NUM_LIT> ) <EOL> @ juno . get ( '<STR_LIT>' ) <EOL> def x3 ( web ) : juno . status ( <NUM_LIT> ) <EOL> @ juno . get ( '<STR_LIT>' ) <EOL> def x4 ( web ) : return <EOL> @ juno . get ( '<STR_LIT>' ) <EOL> def x5 ( web ) : juno . content_type ( '<STR_LIT>' ) <EOL> @ juno . get ( '<STR_LIT>' ) <EOL> def x6 ( web ) : return str ( web . input ( ) ) <EOL> @ juno . get ( '<STR_LIT>' ) <EOL> def x7 ( web ) : return str ( web . input ( ) ) <EOL> application = juno . run ( ) <EOL> """<STR_LIT>""" <EOL> """<STR_LIT>""" <EOL> """<STR_LIT>""" <EOL> import unittest <EOL> from client import Client <EOL> client = Client ( application ) <EOL> class ResponseTest ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def test200StatusCode ( self ) : <EOL> """<STR_LIT>""" <EOL> status , _ , _ = client . request ( '<STR_LIT>' ) <EOL> self . assertEqual ( status , '<STR_LIT>' ) <EOL> def test404StatusCode ( self ) : <EOL> """<STR_LIT>""" <EOL> status , _ , _ = client . request ( '<STR_LIT>' ) <EOL> self . assertEqual ( status , '<STR_LIT>' ) <EOL> def test500StatusCode ( self ) : <EOL> """<STR_LIT>""" <EOL> status , _ , _ = client . request ( '<STR_LIT>' ) <EOL> self . assertEqual ( status , '<STR_LIT>' ) <EOL> def testDefaultContentType ( self ) : <EOL> client . request ( '<STR_LIT>' ) <EOL> header = client . get_header ( '<STR_LIT>' ) <EOL> self . assertEqual ( header [ <NUM_LIT:1> ] , '<STR_LIT>' ) <EOL> def testSetContentType ( self ) : <EOL> client . request ( '<STR_LIT>' ) <EOL> header = client . get_header ( '<STR_LIT>' ) <EOL> self . assertEqual ( header [ <NUM_LIT:1> ] , '<STR_LIT>' ) <EOL> class QueryStringTest ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def testQueryStringHeader ( self ) : <EOL> """<STR_LIT>""" <EOL> _ , _ , body = client . request ( '<STR_LIT>' , QUERY_STRING = '<STR_LIT>' ) <EOL> self . assertEqual ( body , [ "<STR_LIT>" ] ) <EOL> def testSameQueryStringKeys ( self ) : <EOL> """<STR_LIT>""" <EOL> _ , _ , body = client . request ( '<STR_LIT>' , QUERY_STRING = '<STR_LIT>' ) <EOL> self . assertEqual ( body , [ "<STR_LIT>" ] ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
