1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-29 15:42:04 +03:00

s4:tests: fix use of a non-existent word (existant)

This commit is contained in:
Michael Adam
2012-06-11 17:52:57 +02:00
parent cec6ebf4c3
commit 2a1ab92793
3 changed files with 4 additions and 4 deletions

View File

@ -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")

View File

@ -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")

View File

@ -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")