From 7b0c82e7709d7208df1dae74677ad3783c2d9fbb Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Wed, 12 Dec 2012 11:43:05 +0100 Subject: Break encapsulation a bit to clarify code. Perhaps the public API should be properties instead of functions for things like .name that are very unlikely to not be static as well. Would take more work to document though. --- kconfigtest.py | 1 + 1 file changed, 1 insertion(+) (limited to 'kconfigtest.py') diff --git a/kconfigtest.py b/kconfigtest.py index 279a4be..d692787 100644 --- a/kconfigtest.py +++ b/kconfigtest.py @@ -222,6 +222,7 @@ def run_selftests(): c = kconfiglib.Config("Kconfiglib/tests/Ktext") + verify_equals(c["S"].get_name(), "S") verify_equals(c["NO_HELP"].get_help(), None) verify_equals(c["S"].get_help(), "help for\nS\n") verify_equals(c.get_choices()[0].get_help(), "help for\nC\n") -- cgit v1.2.3