def test_check_filter():
    res, pos, msg = WinDivert.check_filter('true')
    assert res
    assert pos == 0
    assert msg is not None
    res, pos, msg = WinDivert.check_filter('something wrong here')
    assert not res
    assert pos == 0
    assert msg is not None
    res, pos, msg = WinDivert.check_filter('outbound and something wrong here')
    assert not res
    assert pos == 13
def test_check_filter():

    res, pos, msg = WinDivert.check_filter('true')
    assert res
    assert pos == 0
    assert msg is not None
    res, pos, msg = WinDivert.check_filter('something wrong here')
    assert not res
    assert pos == 0
    assert msg is not None
    res, pos, msg = WinDivert.check_filter('outbound and something wrong here')
    assert not res
    assert pos == 13