2
# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
3
# See LICENSE for details.
6
from twisted.trial import unittest
7
from twisted.protocols import dict
9
paramString = "\"This is a dqstring \\w\\i\\t\\h boring stuff like: \\\"\" and t\\hes\\\"e are a\\to\\ms"
10
goodparams = ["This is a dqstring with boring stuff like: \"", "and", "thes\"e", "are", "atoms"]
12
class ParamTest(unittest.TestCase):
13
def testParseParam(self):
14
"""Testing command response handling"""
18
(param, rest) = dict.parseParam(rest)
22
self.failUnlessEqual(params, goodparams)#, "DictClient.parseParam returns unexpected results")