Exemple #1
0
 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))
Exemple #2
0
 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")
Exemple #3
0
 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")