Assert that nothing unfiltered was captured on interface :param remark: remark printed into debug logs :param filter_out_fn: filter applied to each packet, packets for which the filter returns True are removed from capture
(
self, timeout=None, remark=None, filter_out_fn=is_ipv6_misc
)
| 392 | ) |
| 393 | |
| 394 | def assert_nothing_captured( |
| 395 | self, timeout=None, remark=None, filter_out_fn=is_ipv6_misc |
| 396 | ): |
| 397 | """Assert that nothing unfiltered was captured on interface |
| 398 | |
| 399 | :param remark: remark printed into debug logs |
| 400 | :param filter_out_fn: filter applied to each packet, packets for which |
| 401 | the filter returns True are removed from capture |
| 402 | """ |
| 403 | capture = self.get_capture( |
| 404 | 0, timeout=timeout, remark=remark, filter_out_fn=filter_out_fn |
| 405 | ) |
| 406 | if not capture or len(capture.res) == 0: |
| 407 | # junk filtered out, we're good |
| 408 | return |
| 409 | |
| 410 | def _wait_for_file_inotify(self, path, timeout): |
| 411 | """Wait for file to appear using Linux inotify. Returns True if file |