#NEWLINE# @ given ( 'a valid form submission "{submission}" using "{method}" method' ) #NEWLINE# def step_impl( context , submission , method ) : #NEWLINE# #INDENT# 'For static injection, store a valid form where elements are replaced with\n    injections and test it once. This is also used for the valid case\n    instrumentation.\n    ' #NEWLINE# if ( hasattr ( context , 'timeout' ) is False ) : #NEWLINE# #INDENT# context . timeout = 5 #NEWLINE# #UNINDENT# if ( hasattr ( context , 'targeturi' ) is False ) : #NEWLINE# #INDENT# assert False , 'Target URI not specified' #NEWLINE# #UNINDENT# context . submission = [ urlparse2 . parse_qs ( submission ) ] #NEWLINE# context . submission_method = context #NEWLINE# context . type = 'urlencode' #NEWLINE# context . content_type = 'application/x-www-form-urlencoded; charset=utf-8' #NEWLINE# test_valid_submission ( context ) #NEWLINE# assert True