Exemple #1
0
 def callConsumer(self, routingKey, msg):
     if self.verifyMessages:
         validation.verifyMessage(self.testcase, routingKey, msg)
     matched = False
     for q in self.qrefs:
         if tuplematch.matchTuple(routingKey, q.filter):
             matched = True
             q.callback(routingKey, msg)
     if not matched:
         raise AssertionError("no consumer found")
Exemple #2
0
 def callConsumer(self, routingKey, msg):
     if self.verifyMessages:
         validation.verifyMessage(self.testcase, routingKey, msg)
     matched = False
     for q in self.qrefs:
         if tuplematch.matchTuple(routingKey, q.filter):
             matched = True
             q.callback(routingKey, msg)
     if not matched:
         raise AssertionError("no consumer found")