Skip to content

Commit 3f4ef9f

Browse files
rbu9ferjarry
authored andcommitted
tests: add test to enable all features
Expects that all features are enabled due to the "*" input. Closes: #101 Signed-off-by: Matthias Breuninger <[email protected]>
1 parent c5af681 commit 3f4ef9f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_context.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ def test_ctx_load_module(self):
6363
mod = ctx.load_module("yolo-system")
6464
self.assertIsInstance(mod, Module)
6565

66+
def test_ctx_load_module_with_features(self):
67+
with Context(YANG_DIR) as ctx:
68+
mod = ctx.load_module("yolo-system", None, ["*"])
69+
self.assertIsInstance(mod, Module)
70+
for f in list(mod.features()):
71+
self.assertTrue(f.state())
72+
6673
def test_ctx_get_module(self):
6774
with Context(YANG_DIR) as ctx:
6875
ctx.load_module("yolo-system")

0 commit comments

Comments
 (0)