<snip>
+        if should_receive:
+            self.verify(len(received_packets) == 1, "Expected packet not received")
+        else:
+            self.verify(len(received_packets) == 0, "Expected packet received")

Side note, didn't notice until I tested it but "Expected packet received" doesn't really make sense as an error message