diff --git a/evennia/utils/tests/test_validatorfuncs.py b/evennia/utils/tests/test_validatorfuncs.py index 9a434d0347..ed89aab375 100644 --- a/evennia/utils/tests/test_validatorfuncs.py +++ b/evennia/utils/tests/test_validatorfuncs.py @@ -140,6 +140,12 @@ class TestValidatorFuncs(TestCase): self.assertEqual(l, validatorfuncs.lock(l)) def test_lock_raises_ValueError(self): - for l in [';;;', '', ':', ':::', ';:;:']: + for l in [';;;', '', ':', ':::', ';:;:', 'x:', ':y']: with self.assertRaises(ValueError): validatorfuncs.lock(l) + with self.assertRaises(ValueError): + validatorfuncs.lock('view:', + access_options=()) + with self.assertRaises(ValueError): + validatorfuncs.lock('view:', + access_options=('view'))