Skip to content

Commit

Permalink
tests: add test to enable all features
Browse files Browse the repository at this point in the history
Expects that all features are enabled due to the "*" input.

Closes: #101
Signed-off-by: Matthias Breuninger <[email protected]>
  • Loading branch information
rbu9fe authored and rjarry committed Feb 17, 2025
1 parent c5af681 commit 3f4ef9f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ def test_ctx_load_module(self):
mod = ctx.load_module("yolo-system")
self.assertIsInstance(mod, Module)

def test_ctx_load_module_with_features(self):
with Context(YANG_DIR) as ctx:
mod = ctx.load_module("yolo-system", None, ["*"])
self.assertIsInstance(mod, Module)
for f in list(mod.features()):
self.assertTrue(f.state())

def test_ctx_get_module(self):
with Context(YANG_DIR) as ctx:
ctx.load_module("yolo-system")
Expand Down

0 comments on commit 3f4ef9f

Please sign in to comment.