def dictCode_text_show(self, line): if line == '.': self.mode = 'ready' else: name, desc = line.split(u' ', 1) desc = tpdict.parseParam(desc)[0] self.result.append((name, desc))
def testParseParam(self): """Testing command response handling""" params = [] rest = paramString while 1: (param, rest) = dict.parseParam(rest) if param == None: break params.append(param) self.failUnlessEqual(params, goodparams)#, "DictClient.parseParam returns unexpected results")
def testParseParam(self): """Testing command response handling""" params = [] rest = paramString while 1: (param, rest) = dict.parseParam(rest) if param == None: break params.append(param) self.assertEqual(params, goodparams)#, "DictClient.parseParam returns unexpected results")