(self)
| 41 | assert f.error is not f2.error |
| 42 | |
| 43 | def test_match(self): |
| 44 | f = tflow.tudpflow() |
| 45 | assert not flowfilter.match("~b nonexistent", f) |
| 46 | assert flowfilter.match(None, f) |
| 47 | assert not flowfilter.match("~b nonexistent", f) |
| 48 | |
| 49 | f = tflow.tudpflow(err=True) |
| 50 | assert flowfilter.match("~e", f) |
| 51 | |
| 52 | with pytest.raises(ValueError): |
| 53 | flowfilter.match("~", f) |
| 54 | |
| 55 | def test_repr(self): |
| 56 | f = tflow.tudpflow() |