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