1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

python: Add function to look for unsubsituted variables.

(This used to be commit e726ce5bc5)
This commit is contained in:
Jelmer Vernooij
2008-01-24 22:18:27 +01:00
parent 859b847a68
commit d958f4b391
2 changed files with 19 additions and 0 deletions

View File

@ -67,6 +67,10 @@ class SubstituteVarTestCase(unittest.TestCase):
def test_unknown_var(self):
self.assertEquals("foo ${bla} gsff",
samba.substitute_var("foo ${bla} gsff", {"bar": "bla"}))
def test_check_all_substituted(self):
check_all_substituted("nothing to see here")
self.assertRaises(Exception, check_all_substituted, "Not subsituted: ${FOOBAR}")
class LdbExtensionTests(TestCaseInTempDir):