Beispiel #1
0
    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
Beispiel #2
0
 def __init__(self):
     TestSuite.__init__(self, "qos 2 delivery")
Beispiel #3
0
 def __init__(self):
     TestSuite.__init__(self, "basic tests")
Beispiel #4
0
 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)
Beispiel #6
0
 def __init__(self):
     TestSuite.__init__(self)
Beispiel #7
0
 def __init__(self):
     TestSuite.__init__(self, "basic tests")
Beispiel #8
0
 def __init__(self):
     TestSuite.__init__(self, "system events")
Beispiel #9
0
 def __init__(self):
     TestSuite.__init__(self, "CONNECT flags")
Beispiel #10
0
 def __init__(self):
     TestSuite.__init__(self, "SSL2")
Beispiel #11
0
 def __init__(self):
     TestSuite.__init__(self, "SSL")
Beispiel #12
0
 def __init__(self):
     TestSuite.__init__(self, "error cases")
Beispiel #13
0
 def __init__(self):
     TestSuite.__init__(self, "unicode")