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

Function test_assert_features

tests/client/test_methods_nat.py:68–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66
67
68def test_assert_features():
69 method = get_method('nat')
70 features = method.get_supported_features()
71 method.assert_features(features)
72
73 features.udp = True
74 with pytest.raises(Fatal):
75 method.assert_features(features)
76
77 features.ipv6 = True
78 with pytest.raises(Fatal):
79 method.assert_features(features)
80
81
82def test_firewall_command():

Callers

nothing calls this directly

Calls 3

get_methodFunction · 0.90
assert_featuresMethod · 0.80

Tested by

no test coverage detected