def test_read_walk_data(self, tmpdir): assert StoredWalkSNMPBackend.read_walk_data( tmpdir / "walkdata" / "1.txt") == [".1.2.3 foo\n", ".1.2.4 bar\nfoobar\n"] assert StoredWalkSNMPBackend.read_walk_data( tmpdir / "walkdata" / "2.txt") == [".1.2.3 foo\n\n\n", ".1.2.5 test\n"]
def test_compare_oids(self, a, b, result): assert StoredWalkSNMPBackend._compare_oids(a, b) == result