Signed-off-by: Zygmunt Krynicki <[email protected]>
---
plainbox/plainbox/impl/secure/config.py | 1 +
plainbox/plainbox/impl/secure/test_config.py | 6 ++++++
2 files changed, 7 insertions(+)
diff --git a/plainbox/plainbox/impl/secure/config.py
b/plainbox/plainbox/impl/secure/config.py
index 25af8f6..f651359 100644
--- a/plainbox/plainbox/impl/secure/config.py
+++ b/plainbox/plainbox/impl/secure/config.py
@@ -714,6 +714,7 @@ class ChoiceValidator(IValidator):
return False
+@understands_Unset
class NotUnsetValidator(IValidator):
"""
A validator ensuring that values are set
diff --git a/plainbox/plainbox/impl/secure/test_config.py
b/plainbox/plainbox/impl/secure/test_config.py
index a6ab64b..e00815d 100644
--- a/plainbox/plainbox/impl/secure/test_config.py
+++ b/plainbox/plainbox/impl/secure/test_config.py
@@ -367,6 +367,12 @@ class NotUnsetValidatorTests(TestCase):
class _Config(Config):
var = Variable()
+ def test_understands_Unset(self):
+ """
+ verify that Unset can be handled at all
+ """
+ self.assertTrue(getattr(NotUnsetValidator, "understands_Unset"))
+
def test_rejects_unset_values(self):
"""
verify that Unset variables are rejected
--
1.9.0
--
Mailing list: https://launchpad.net/~checkbox-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~checkbox-dev
More help : https://help.launchpad.net/ListHelp