Exemplo n.º 1
0
 def must_not_next(self) -> None:
     """
     Call .next(), raise error if packet is found
     """
     p = self.next()
     if p is None:
         return
     else:
         raise errors.UnexpectedPacketFound(self.index, p)
Exemplo n.º 2
0
 def must_not_next(self) -> None:
     """
     Call .next(), raise error if packet is found
     """
     p = self.next()
     if p is None:
         return
     else:
         logging.error("Found unexpected packet at #%s", self.index)
         p.show()
         p.debug_fields()
         raise errors.UnexpectedPacketFound(self.index, p)