<s> from watson . events import types <EOL> from watson . framework import applications <EOL> from watson . framework . debug . panels import Request <EOL> from watson . http import messages <EOL> from tests . watson . framework import support <EOL> class TestRequest ( object ) : <EOL> def setup ( self ) : <EOL> app = applications . Http ( ) <EOL> p = Request ( <EOL> { '<STR_LIT>' : True } , app . container . get ( '<STR_LIT>' ) , app ) <EOL> self . app = app <EOL> self . panel = p <EOL> params = { <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT>' : messages . Request . from_environ ( support . sample_environ ( ) ) <EOL> } <EOL> } <EOL> p . event = types . Event ( '<STR_LIT:test>' , params = params ) <EOL> def test_render ( self ) : <EOL> assert '<STR_LIT>' in self . panel . render ( ) <EOL> def test_render_key_stat ( self ) : <EOL> assert self . panel . render_key_stat ( ) == '<STR_LIT:GET>' </s>
