示例#1
0
文件: 002_pubsub.py 项目: gbour/wave
    def __init__(self):
        TestSuite.__init__(self, "publish/subscribe")

        i = 1
        for test in PubSub.tests:
            (subtopic, pubtopic) = test[0:2]
            match = test[2] if len(test) >= 3 else True


            def _funcbuilder(subtopic, pubtopic, match):
                def _test(self):
                    debug("pubtopic={0}, subtopic={1}".format(pubtopic,subtopic))
                    ret = self._pubsub(pubtopic, subtopic, match)
                    return ret if match else not ret
                return _test

            setattr(self,
                "test_{0:03}".format(i),
                types.MethodType(
                    catch(
                        desc("{0} {1} {2}".format(subtopic, "MATCH" if match else "DON'T MATCH", pubtopic))(
                            _funcbuilder(subtopic, pubtopic, match)
                    )),
                    self
                )
            )
            i += 1
示例#2
0
文件: 007_qos2.py 项目: helloyan/wave
 def __init__(self):
     TestSuite.__init__(self, "qos 2 delivery")
示例#3
0
文件: 001_basics.py 项目: gbour/wave
 def __init__(self):
     TestSuite.__init__(self, "basic tests")
示例#4
0
文件: 006_qos1.py 项目: gbour/wave
 def __init__(self):
     TestSuite.__init__(self, "qos 1 delivery")
 def __init__(self):
     "build a test suite for spec jvm 98"
     TestSuite.__init__(self, self.SPECLIST)
示例#6
0
 def __init__(self):
     TestSuite.__init__(self)
示例#7
0
 def __init__(self):
     TestSuite.__init__(self, "basic tests")
示例#8
0
 def __init__(self):
     TestSuite.__init__(self, "system events")
示例#9
0
 def __init__(self):
     TestSuite.__init__(self, "CONNECT flags")
示例#10
0
 def __init__(self):
     TestSuite.__init__(self, "SSL2")
示例#11
0
文件: 003_ssl.py 项目: gbour/wave
 def __init__(self):
     TestSuite.__init__(self, "SSL")
示例#12
0
 def __init__(self):
     TestSuite.__init__(self, "error cases")
示例#13
0
 def __init__(self):
     TestSuite.__init__(self, "unicode")