summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-06-11 17:52:57 +0200
committerMichael Adam <obnox@samba.org>2012-06-12 07:21:45 +0200
commit2a1ab927932675b5ea3a22628f55f34882f7c682 (patch)
treecf891dd5afd74989be74e0ce4fd7bcfb5b7bf0ce /source4
parentcec6ebf4c33c3bbb9bdb4466f25964c96275e2e0 (diff)
downloadsamba-2a1ab927932675b5ea3a22628f55f34882f7c682.tar.gz
samba-2a1ab927932675b5ea3a22628f55f34882f7c682.tar.bz2
samba-2a1ab927932675b5ea3a22628f55f34882f7c682.zip
s4:tests: fix use of a non-existent word (existant)
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/python/samba/tests/hostconfig.py2
-rw-r--r--source4/scripting/python/samba/tests/param.py4
-rw-r--r--source4/scripting/python/samba/tests/samba_tool/timecmd.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/source4/scripting/python/samba/tests/hostconfig.py b/source4/scripting/python/samba/tests/hostconfig.py
index 8f42a2b652..85cb1df0c1 100644
--- a/source4/scripting/python/samba/tests/hostconfig.py
+++ b/source4/scripting/python/samba/tests/hostconfig.py
@@ -63,7 +63,7 @@ class ShareTests(TestCase):
shares = self._get_shares({"global": {}})
self.assertEquals(0, len(shares))
- def test_getitem_nonexistant(self):
+ def test_getitem_nonexistent(self):
shares = self._get_shares({"global": {}})
self.assertRaises(KeyError, shares.__getitem__, "bla")
diff --git a/source4/scripting/python/samba/tests/param.py b/source4/scripting/python/samba/tests/param.py
index 49dd7fb0a7..f539eba140 100644
--- a/source4/scripting/python/samba/tests/param.py
+++ b/source4/scripting/python/samba/tests/param.py
@@ -51,7 +51,7 @@ class LoadParmTestCase(samba.tests.TestCase):
file = param.LoadParm()
file.load_default()
- def test_section_nonexistant(self):
+ def test_section_nonexistent(self):
samba_lp = param.LoadParm()
samba_lp.load_default()
- self.assertRaises(KeyError, samba_lp.__getitem__, "nonexistant")
+ self.assertRaises(KeyError, samba_lp.__getitem__, "nonexistent")
diff --git a/source4/scripting/python/samba/tests/samba_tool/timecmd.py b/source4/scripting/python/samba/tests/samba_tool/timecmd.py
index a488a668ff..000f0f2828 100644
--- a/source4/scripting/python/samba/tests/samba_tool/timecmd.py
+++ b/source4/scripting/python/samba/tests/samba_tool/timecmd.py
@@ -36,7 +36,7 @@ class TimeCmdTestCase(SambaToolCmdTest):
self.assertTrue((servertime > (now - delta) and (servertime < (now + delta)), "Time is now"))
def test_timefail(self):
- """Run time against a non-existant server, and make sure it fails"""
+ """Run time against a non-existent server, and make sure it fails"""
(result, out, err) = self.runcmd("time", "notaserver")
self.assertEquals(result, -1, "check for result code")
self.assertTrue(err.strip().endswith("NT_STATUS_OBJECT_NAME_NOT_FOUND"), "ensure right error string")