<s> from falcon import util <EOL> class StartResponseMock ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self ) : <EOL> self . _called = <NUM_LIT:0> <EOL> self . status = None <EOL> self . headers = None <EOL> self . exc_info = None <EOL> def __call__ ( self , status , headers , exc_info = None ) : <EOL> """<STR_LIT>""" <EOL> self . _called += <NUM_LIT:1> <EOL> self . status = status <EOL> self . headers = [ ( name . lower ( ) , value ) for name , value in headers ] <EOL> self . headers_dict = util . CaseInsensitiveDict ( headers ) <EOL> self . exc_info = exc_info <EOL> @ property <EOL> def call_count ( self ) : <EOL> return self . _called </s>
