<s> from twisted . trial import unittest <EOL> from twisted . protocols import dict <EOL> paramString = "<STR_LIT>" <EOL> goodparams = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> class ParamTests ( unittest . TestCase ) : <EOL> def testParseParam ( self ) : <EOL> """<STR_LIT>""" <EOL> params = [ ] <EOL> rest = paramString <EOL> while <NUM_LIT:1> : <EOL> ( param , rest ) = dict . parseParam ( rest ) <EOL> if param == None : <EOL> break <EOL> params . append ( param ) <EOL> self . assertEqual ( params , goodparams ) </s>
