MCPcopy
hub / github.com/sshuttle/sshuttle / test_assert_features

Function test_assert_features

tests/client/test_methods_pf.py:75–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73
74
75def test_assert_features():
76 method = get_method('pf')
77 features = method.get_supported_features()
78 method.assert_features(features)
79
80 features.udp = True
81 with pytest.raises(Fatal):
82 method.assert_features(features)
83
84 features.ipv6 = True
85 with pytest.raises(Fatal):
86 method.assert_features(features)
87
88
89@patch('sshuttle.methods.pf.pf', Darwin())

Callers

nothing calls this directly

Calls 3

get_methodFunction · 0.90
assert_featuresMethod · 0.80

Tested by

no test coverage detected