]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python:samba:tests: Fix code spelling
authorAndreas Schneider <asn@samba.org>
Tue, 6 Jun 2023 11:28:13 +0000 (13:28 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 23 Jun 2023 13:44:31 +0000 (13:44 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
33 files changed:
python/samba/tests/blackbox/smbcacls_dfs_propagate_inherit.py
python/samba/tests/blackbox/smbcacls_propagate_inhertance.py
python/samba/tests/compression.py
python/samba/tests/core.py
python/samba/tests/dcerpc/dnsserver.py
python/samba/tests/dcerpc/srvsvc.py
python/samba/tests/dcerpc/string_tests.py
python/samba/tests/dns_aging.py
python/samba/tests/domain_backup.py
python/samba/tests/dsdb.py
python/samba/tests/getdcname.py
python/samba/tests/krb5/claims_in_pac.py
python/samba/tests/krb5/claims_tests.py
python/samba/tests/krb5/fast_tests.py
python/samba/tests/krb5/kpasswd_tests.py
python/samba/tests/krb5/ms_kile_client_principal_lookup_tests.py
python/samba/tests/krb5_credentials.py
python/samba/tests/ldap_referrals.py
python/samba/tests/ldap_upn_sam_account.py
python/samba/tests/net_join_no_spnego.py
python/samba/tests/param.py
python/samba/tests/samba_tool/contact.py
python/samba/tests/samba_tool/dnscmd.py
python/samba/tests/samba_tool/drs_clone_dc_data_lmdb_size.py
python/samba/tests/samba_tool/passwordsettings.py
python/samba/tests/samba_tool/promote_dc_lmdb_size.py
python/samba/tests/samba_tool/provision_lmdb_size.py
python/samba/tests/samba_tool/user.py
python/samba/tests/samba_tool/user_virtualCryptSHA.py
python/samba/tests/samba_tool/user_virtualCryptSHA_userPassword.py
python/samba/tests/smb-notify.py
python/samba/tests/smbd_base.py
python/samba/tests/xattr.py

index 42680df0d06ee1bb1743c85ca82d3d47f43cfa56..b1c1df8d41e3291e91f8087901efe39a3243b2b8 100644 (file)
@@ -25,7 +25,7 @@ class DfsInheritanceSmbCaclsTests(InheritanceSmbCaclsTests):
     def setUp(self):
         # This is some intentional trickery to ensure we skip
         # InheritanceSmbCaclsTests.setUp so we can create a new
-        # test directory & file hierachy (including a nested dfs link)
+        # test directory & file hierarchy (including a nested dfs link)
         SmbCaclsBlockboxTestBase.setUp(self)
         smbclient_args = self.build_test_cmd("smbclient", ["//%s/%s" % (self.server, self.share), "-c", "mkdir %s" % os.getenv("TESTDIR", "smbcacls")])
         self.check_output(smbclient_args)
index a7be768a9c98dce226e11e6e24ef7312d9343ddb..cfe7e0b0b960c2689fd545934aa46aefc68b00f4 100644 (file)
@@ -237,7 +237,7 @@ class InheritanceSmbCaclsTests(SmbCaclsBlockboxTestBase):
         try:
             # add flags on oi_dir
 
-            # This is somwhat artificial, we need to add a new acl to the directory
+            # This is somewhat artificial, we need to add a new acl to the directory
             # so that the following modify operation doesn't fail. Previously
             # '--modify' was used in place of '--add' but that resulted in failure
             # to access the directory ( or even modify the acl ).
@@ -462,7 +462,7 @@ class InheritanceSmbCaclsTests(SmbCaclsBlockboxTestBase):
         delete_ace_str = "ACL:%s:ALLOWED/0x0/RWD" % self.user
 
         try:
-            # This is somwhat artificial, we need to add a new acl to the
+            # This is somewhat artificial, we need to add a new acl to the
             # directory so that the following modify operation doesn't fail.
             # Previously '--modify' was used in place of '--add' but that
             # resulted in failure to access the directory ( or even modify
@@ -688,7 +688,7 @@ class InheritanceSmbCaclsTests(SmbCaclsBlockboxTestBase):
         try:
             # add flags on oi_dir
 
-            # This is somwhat artificial, we need to add a new acl to the
+            # This is somewhat artificial, we need to add a new acl to the
             # directory so that the following modify operation doesn't fail.
             # Previously '--modify' was used in place of '--add' but that
             # resulted in failure to access the directory ( or even modify
index 48f8c874cba501f7d43e9daae41f39f25b8f949c..45e6747b0ddfa49ff853c9c3beb7b00743a1148d 100644 (file)
@@ -30,7 +30,7 @@ class BaseCompressionTest(TestCase):
         """Compress, decompress, assert equality with original.
 
         If size_delta is None, no size is given to decompress. This
-        should fail with the Huffman varient and succeed with plain.
+        should fail with the Huffman variant and succeed with plain.
         Otherwise size_delta is added to the gven size; if negative,
         we'd expect a failure, with plain compression a positive delta
         will succeed.
@@ -91,7 +91,7 @@ class LzxpressPlainCompressionTest(BaseCompressionTest):
 
     def test_round_trip_aaa_long(self):
         s = b'a' * 150000
-        # this *wont* fail because although the data will run out
+        # this *won't* fail because although the data will run out
         # before the buffer is full, LZXpress plain does not care
         # about that.
         try:
@@ -194,7 +194,7 @@ class LzxpressHuffmanCompressionTest(BaseCompressionTest):
 
         # For the Huffman algorithm, the length is really an essential
         # part of the compression data, and the bindings will reject a
-        # call with out it. This happens at the arument parsing stage,
+        # call with out it. This happens at the argument parsing stage,
         # so is a TypeError (i.e. wrong type of function), not a
         # CompressionError.
         self.assertRaises(TypeError,
index e3b44d18696209d14041d83344378866830904b3..9f53473d4f6f28f8b62d977d8287e411e2f8b456 100644 (file)
@@ -48,7 +48,7 @@ class SubstituteVarTestCase(TestCase):
     def test_check_all_substituted(self):
         samba.check_all_substituted("nothing to see here")
         self.assertRaises(Exception, samba.check_all_substituted,
-                          "Not subsituted: ${FOOBAR}")
+                          "Not substituted: ${FOOBAR}")
 
 
 class ArcfourTestCase(TestCase):
index 1e583f4eb6c2c125a6e3e757593ff441a4015f40..6e7c6389becb751d4901a3eb1fe3c8c65ad7c510 100644 (file)
@@ -364,7 +364,7 @@ class DnsserverTests(RpcInterfaceTestCase):
         # there should be no A record, and one TOMBSTONE record.
         self.assert_num_records(self.custom_zone, "testrecord", 'A', 0)
         # we can't make assertions about the tombstone count based on
-        # RPC calls, as ther are no tombstones in RPCs (there is
+        # RPC calls, as there are no tombstones in RPCs (there is
         # "DNS_TYPE_ZERO" instead). Nor do tombstones show up if we
         # use DNS_TYPE_ALL.
         self.assert_num_records(self.custom_zone, "testrecord", 'ALL', 0)
index 4590ca5a412887c7d4f09d9ed406643c7c285496..ddd9661f3432207dddfcdb642ea0366955ef5340 100644 (file)
@@ -55,7 +55,7 @@ class SrvsvcTests(RpcInterfaceTestCase):
         parm_error = 0x00000000
         self.conn.NetShareAdd(self.server_unc, 502, share, parm_error)
         name = share.name
-        share.comment = "now sucessfully modified "
+        share.comment = "now successfully modified "
         parm_error = self.pipe.NetShareSetInfo(self.server_unc, name,
                                                502, share, parm_error)
 
index f4fa99f360427dd336e20aa45e7ab9576ae195a4..4dbbd3eed5cdfed060e47eea05e8016c2af255dd 100644 (file)
@@ -116,7 +116,7 @@ class StringTests(samba.tests.TestCase):
 class StringTestsWithoutLeakCheck(samba.tests.TestCase):
     """We know that the ndr unpacking test leaves stuff in the
     autofree_context, and we don't want to worry about that. So for
-    this test we don't make meory leak assertions."""
+    this test we don't make memory leak assertions."""
 
     def test_string_from_ndr(self):
         info = drsblobs.repsFromTo2OtherInfo()
index 4818451f789a2bc9a7aa48a9e82c6e18cc8a7610..31e4be9cb43d8a992cea068a18f210e80f80d109 100644 (file)
@@ -1920,7 +1920,7 @@ class TestDNSAging(DNSTest):
         self.assertEqual(rec.dwTimeStamp, 0)     # timestamp stays zero
 
         if failures:
-            self.fail(f"failed {failures}/{total} defered assertions")
+            self.fail(f"failed {failures}/{total} deferred assertions")
 
     def test_static_record_dynamic_update(self):
         """Add a static record, then a dynamic record.
index 2feef28bcb435a96518957c6227847036f4c6057..433905e5a57c997d13b7417e50d57071b3b48aca 100644 (file)
@@ -273,9 +273,9 @@ class DomainBackupBase(BlackboxTestCase):
 
         bkp_pd = get_prim_dom(paths.secrets, bkp_lp)
         self.assertEqual(len(bkp_pd), 1)
-        acn = bkp_pd[0].get('samAccountName')
-        self.assertIsNotNone(acn)
-        self.assertEqual(str(acn[0]), self.new_server + '$')
+        account = bkp_pd[0].get('samAccountName')
+        self.assertIsNotNone(account)
+        self.assertEqual(str(account[0]), self.new_server + '$')
         self.assertIsNotNone(bkp_pd[0].get('secret'))
 
         samdb = SamDB(url=paths.samdb, session_info=system_session(),
index 59d946cd6a673555b4941100b806b521f78b455f..d8d9ac1ee3ca0c195e8a979ab698f5c4e22ab918 100644 (file)
@@ -87,7 +87,7 @@ class DsdbAccountTests(TestCase):
 
     def test_ridalloc_next_free_rid(self):
         # Test RID allocation. We assume that RID
-        # pools allocated to us are continguous.
+        # pools allocated to us are contiguous.
         self.samdb.transaction_start()
         try:
             orig_rid_set = self.get_rid_set(self.rid_set_dn)
index 6dbe7aba454b1dc0b4e4fe4ee05792b83cc9cb66..f5bf64b989c834b539000722a180b0616a4782d5 100644 (file)
@@ -443,7 +443,7 @@ class GetDCNameEx(samba.tests.TestCase):
                          self.realm.lower())
 
     def test_get_dc_winbind_need_2012r2(self):
-        """Test requring that we have a FL2012R2 DC as answer
+        """Test requiring that we have a FL2012R2 DC as answer
         """
         self.assertIsNotNone(self.trust_realm)
 
@@ -472,7 +472,7 @@ class GetDCNameEx(samba.tests.TestCase):
         self.assertTrue(cldap_netlogon_reply.server_type & nbt.NBT_SERVER_DS_9)
 
     def test_get_dc_direct_need_2012r2_but_not_found(self):
-        """Test requring that we have a FL2012R2 DC as answer, aginst the FL2008R2 domain
+        """Test requiring that we have a FL2012R2 DC as answer, against the FL2008R2 domain
 
         This test requires that the DC in the FL2008R2 does not claim
         to be 2012R2 capable (off by default in Samba)
@@ -492,7 +492,7 @@ class GetDCNameEx(samba.tests.TestCase):
                 self.fail(f"Incorrect error {estr} from GetDcNameEx looking for 2012R2 DC that was not available")
 
     def test_get_dc_direct_need_web_but_not_found(self):
-        """Test requring that we (do not) have a AD Web Services on the DC
+        """Test requiring that we (do not) have a AD Web Services on the DC
 
         This test requires that the DC does not advertise AD Web Services
 
@@ -525,7 +525,7 @@ class GetDCNameEx(samba.tests.TestCase):
         self.assertFalse(cldap_netlogon_reply.server_type & nbt.NBT_SERVER_ADS_WEB_SERVICE)
 
     def test_get_dc_winbind_need_web_but_not_found(self):
-        """Test requring that we (do not) have a AD Web Services on the trusted DC
+        """Test requiring that we (do not) have a AD Web Services on the trusted DC
 
         This test requires that the DC does not advertise AD Web Services
 
@@ -558,7 +558,7 @@ class GetDCNameEx(samba.tests.TestCase):
         self.assertFalse(cldap_netlogon_reply.server_type & nbt.NBT_SERVER_ADS_WEB_SERVICE)
 
     def test_get_dc_direct_need_2012r2(self):
-        """Test requring that we have a FL2012R2 DC as answer
+        """Test requiring that we have a FL2012R2 DC as answer
         """
         self.assertIsNotNone(self.trust_realm)
 
@@ -586,7 +586,7 @@ class GetDCNameEx(samba.tests.TestCase):
         self.assertTrue(cldap_netlogon_reply.server_type & nbt.NBT_SERVER_DS_9)
 
     def test_get_dc_winbind_need_2012r2_but_not_found(self):
-        """Test requring that we have a FL2012R2 DC as answer, aginst the FL2008R2 domain
+        """Test requiring that we have a FL2012R2 DC as answer, against the FL2008R2 domain
 
         This test requires that the DC in the FL2008R2 does not claim
         to be 2012R2 capable (off by default in Samba)
@@ -616,7 +616,7 @@ class GetDCNameEx(samba.tests.TestCase):
         self.assertFalse(cldap_netlogon_reply.server_type & nbt.NBT_SERVER_DS_9)
 
     def test_get_dc_winbind_need_2012r2_but_not_found_fallback(self):
-        """Test requring that we have a FL2012R2 DC as answer, aginst the
+        """Test requiring that we have a FL2012R2 DC as answer, against the
         FL2008R2 domain, then trying for just FL2008R2 (to show caching bugs)
 
         This test requires that the DC in the FL2008R2 does not claim
@@ -656,7 +656,7 @@ class GetDCNameEx(samba.tests.TestCase):
         self.assertTrue(cldap_netlogon_reply.server_type & nbt.NBT_SERVER_FULL_SECRET_DOMAIN_6)
 
     def test_get_dc_direct_need_2012r2_but_not_found_fallback(self):
-        """Test requring that we have a FL2012R2 DC as answer, aginst the
+        """Test requiring that we have a FL2012R2 DC as answer, against the
         FL2008R2 domain, then trying for just FL2008R2 (to show caching bugs)
 
         This test requires that the DC in the FL2008R2 does not claim
index 386d28f2ec617eb070368f072288cb449c4206c6..82cd7b7e694deec83138528955ccc719f3203e8c 100755 (executable)
@@ -307,7 +307,7 @@ class PacClaimsTests(TestCase):
         client_claims_bytes1 = ndr_pack(client_claims)
         client_claims2 = ndr_unpack(claims.CLAIMS_SET_METADATA_NDR, client_claims_bytes1)
 
-        # Confirm that despite no lenghts being set, the data is compressed correctly
+        # Confirm that despite no lengths being set, the data is compressed correctly
         self.assertEqual(client_claims2.claims.metadata.uncompressed_claims_set_size,
                          8232)
         self.assertEqual(client_claims2.claims.metadata.claims_set_size,
index a531da7ecb0620f8f70607c267c7d6b1f7de637c..3fefb4c11a7793746580a26129609c6f082557bc 100755 (executable)
@@ -334,7 +334,7 @@ class ClaimsTests(KDCBaseTest):
             expected_client_claims=(expected_claims
                                     if not remove_claims else None))
 
-    # Perform a test similar to that preceeding. This time, create both a user
+    # Perform a test similar to that preceding. This time, create both a user
     # and a computer account, each having an applicable claim. After obtaining
     # tickets, from which the claims are optionally removed, change the claim
     # attribute of each account to a different value. Then perform constrained
index 1c4b5256cef2cc455ddfcb2dbf3ee82cd0ace566..3feafc22f53074ff08dbdec16b8faa1178f27ad7 100755 (executable)
@@ -2010,7 +2010,7 @@ class FAST_Tests(KDCBaseTest):
 
         checksum_keys = self.get_krbtgt_checksum_key()
 
-        # Use our modifed TGT to replace the one in the request.
+        # Use our modified TGT to replace the one in the request.
         return self.modified_ticket(user_tgt,
                                     modify_fn=modify_fn,
                                     checksum_keys=checksum_keys)
index 2ff72f24f5d028cd56c91cf1b566ad041bf8cb07..961feeac2439cb49cc30cba6400756a409c434f5 100755 (executable)
@@ -504,7 +504,7 @@ class KpasswdTests(KDCBaseTest):
                               target_realm=creds.get_realm())
 
     # Test setting a password, specifying both principal and realm of the
-    # target user, whem the user has control access on their account.
+    # target user, when the user has control access on their account.
     def test_kpasswd_set_target_princ_and_realm_access(self):
         # Create an account for testing.
         creds = self._get_creds()
index 6e173daf93e0e7d12f07056b39cf828b044a1db1..3fda7d66cf0d7a8af8fe2574814fe1fcfad87e19 100755 (executable)
@@ -42,7 +42,7 @@ global_hexdump = False
 class MS_Kile_Client_Principal_Lookup_Tests(KDCBaseTest):
     ''' Tests for MS-KILE client principal look-up
         See [MS-KILE]: Kerberos Protocol Extensions
-            secion 3.3.5.6.1 Client Principal Lookup
+            section 3.3.5.6.1 Client Principal Lookup
     '''
 
     def setUp(self):
index 6c30bef97af6a612ec61172a37cecbd96d157f1c..0563e40286af0c38e15c7e2fec4eb7d7d6e584b2 100644 (file)
@@ -31,7 +31,7 @@ from samba.samdb import SamDB
 
 """KRB5 Integration tests for pycredentials.
 
-Seperated from py_credentials so as to allow running against just one
+Separated from py_credentials so as to allow running against just one
 environment so we know the server that we add the user on will be our
 KDC
 
index b3f980e0301b4339fbe834b7d6dac296bf0006a1..eade5ef668208de770423a2abb1e470abe0e60da 100644 (file)
@@ -64,11 +64,11 @@ class LdapReferralTest(samba.tests.TestCase):
             scope=ldb.SCOPE_SUBTREE,
             attrs=["objectGUID", "samAccountName"])
 
-        referals = res.referals
-        for referal in referals:
+        referrals = res.referals
+        for referral in referrals:
             self.assertTrue(
-                referal.startswith("ldap://"),
-                "{0} does not start with ldap://".format(referal))
+                referral.startswith("ldap://"),
+                "{0} does not start with ldap://".format(referral))
 
     # The referral entries for an ldaps request should have the ldaps scheme
     # i.e. then should all start with "ldaps://"
@@ -83,8 +83,8 @@ class LdapReferralTest(samba.tests.TestCase):
             scope=ldb.SCOPE_SUBTREE,
             attrs=["objectGUID", "samAccountName"])
 
-        referals = res.referals
-        for referal in referals:
+        referrals = res.referals
+        for referral in referrals:
             self.assertTrue(
-                referal.startswith("ldaps://"),
-                "{0} does not start with ldaps://".format(referal))
+                referral.startswith("ldaps://"),
+                "{0} does not start with ldaps://".format(referral))
index cc1cce9b6c3fd676a59594e95b9e2533255abb1b..ab0ca063225ff43da079f6f9c1343a75b52cde05 100644 (file)
@@ -267,7 +267,7 @@ class LdapUpnSamTest(LdapUpnSamTestBase):
         #
         # * If a dictionary, it is a mapping of some of ['sam', 'upn']
         #   to strings (in this way, you can add two attributes in one
-        #   mesage, or attempt a samaccountname with '@').
+        #   message, or attempt a samaccountname with '@').
         #
         # expected can be «ok», «bad» (mapped to True and False,
         # respectively), or a specific LDB error code, if that exact
index 6dbb9b0e983f41b5810cd5a479f9bf0f9cc82759..70a9007324f896e9b64c0a2c699e71c4bbc3cb16 100644 (file)
@@ -64,7 +64,7 @@ class NetJoinNoSpnegoTests(samba.tests.TestCaseInTempDir):
                 return
             else:
                 raise
-        self.fail("Shoud have rejected NTLMv2 without SPNEGO")
+        self.fail("Should have rejected NTLMv2 without SPNEGO")
 
     def test_net_join_no_spnego_ntlmv1(self):
         self.lp.set("client ipc max protocol", "NT1")
index ae58074b80be10a70797d7d4149bdd43905671bc..f201ef9e213bfff262569c6ef72498298651be10 100644 (file)
@@ -74,7 +74,7 @@ class LoadParmTestCase(samba.tests.TestCaseInTempDir):
 
     def test_dump(self):
         samba_lp = param.LoadParm()
-        # Just test successfull method execution (outputs to stdout)
+        # Just test successful method execution (outputs to stdout)
         self.assertEqual(None, samba_lp.dump())
 
     def test_dump_to_file(self):
@@ -87,7 +87,7 @@ class LoadParmTestCase(samba.tests.TestCaseInTempDir):
     def test_dump_a_parameter(self):
         samba_lp = param.LoadParm()
         samba_lp.load_default()
-        # Just test successfull method execution
+        # Just test successful method execution
         self.assertEqual(None, samba_lp.dump_a_parameter('interfaces'))
 
     def test_dump_a_parameter_to_file(self):
index 7a8ff082e22f767dc36d730e85101b3dd9d25e3d..00050120bfc2dca8659e81460fc9f9c2e3b71e7a 100644 (file)
@@ -295,7 +295,7 @@ class ContactCmdTestCase(SambaToolCmdTest):
             self.assertEqual("%s" % found.get("cn"), expected_cn)
 
             # remove given name, initials and surname
-            # (must forece new cn, because en empty new CN throws an error)
+            # (must force new cn, because en empty new CN throws an error)
             (result, out, err) = self.runsubcmd("contact", "rename", expected_cn,
                                                 "--force-new-cn=%s" % expected_cn,
                                                 "--surname=",
index c36c4b535d0d9693017dc2c28ec5d5345f555556..0ce61de2a019ed7734d8b505f521a466988fa63b 100644 (file)
@@ -1136,7 +1136,7 @@ class DnsCmdTestCase(SambaToolCmdTest):
                 (
                     # snizle has 2 A, 2 AAAA, 10 fancy, and 2 TXT records, in
                     # that order.
-                    # the A, AAAA, and TXT recrods should be dynamic
+                    # the A, AAAA, and TXT records should be dynamic
                     ['--mark-records-dynamic-regex=sniz'],
                     {'snizle': [('R', 'nowish'),
                                 ('R', 'nowish'),
@@ -1198,7 +1198,7 @@ class DnsCmdTestCase(SambaToolCmdTest):
                 (
                     # This regex should catch snizle, frobitz, and
                     # ts-multi. Note that the 1e7 ts-multi record is
-                    # alreay dynamic and doesn't change.
+                    # already dynamic and doesn't change.
                     ['--mark-records-dynamic-regex=[i]'],
                     {'ts-multi': [('R', 'nowish'),
                                   ('R', 'nowish'),
index ff7cdb774cba278ba1ca042e9285de283432b02f..efb9ed9536a9250dd6a764131f4ae0bc877b4eef 100644 (file)
@@ -49,7 +49,7 @@ class DrsCloneDcDataLmdbSizeTestCase(SambaToolCmdTest):
     # Get the lmdb map size for the specified command
     #
     # While there is a python lmdb package available we use the lmdb command
-    # line utilities to avoid introducing a dependancy.
+    # line utilities to avoid introducing a dependency.
     #
     def get_lmdb_environment_size(self, path):
         (result, out, err) = self.run_command("mdb_stat -ne %s" % path)
index f2d7a6e6a79a586937960c7ed9c56752e2d8231c..e9e995389bd1492cc993e97f8513cfeda0c9e180 100644 (file)
@@ -255,7 +255,7 @@ class PwdSettingsCmdTestCase(SambaToolCmdTest):
                                                  "pso", "delete"), pso_name,
                                                  "-H", self.server,
                                                  self.user_auth)
-        self.assertCmdFail(result, "Deleteing a non-existent PSO should fail")
+        self.assertCmdFail(result, "Deleting a non-existent PSO should fail")
         self.assertIn("Unable to find PSO", err)
 
     def check_pso_applied(self, user, pso):
index ba1086f291ec25fd1aa2d491154e11eb2d63de61..fbb0bfdeeffdcf4464b71a41e080ec4a0fb7f5ac 100644 (file)
@@ -75,7 +75,7 @@ class PromoteDcLmdbSizeTestCase(SambaToolCmdTest):
     # Get the lmdb map size for the specified command
     #
     # While there is a python lmdb package available we use the lmdb command
-    # line utilities to avoid introducing a dependancy.
+    # line utilities to avoid introducing a dependency.
     #
     def get_lmdb_environment_size(self, path):
         (result, out, err) = self.run_command("mdb_stat -ne %s" % path)
index 6b0d2b74117778651cce1025fb1ecd1ee4582541..2435e120e07d5b8013fe6e45387b252f9e11a2f1 100644 (file)
@@ -50,7 +50,7 @@ class ProvisionLmdbSizeTestCase(SambaToolCmdTest):
     # Get the lmdb map size for the specified command
     #
     # While there is a python lmdb package available we use the lmdb command
-    # line utilities to avoid introducing a dependancy.
+    # line utilities to avoid introducing a dependency.
     #
     def get_lmdb_environment_size(self, path):
         (result, out, err) = self.run_command("mdb_stat -ne %s" % path)
index 54df97de645ed6111fc2d82314b7ce7e0cc5d33e..99fb6d9b2f38264af85865b31cdc9e4709a7b15d 100644 (file)
@@ -394,7 +394,7 @@ class UserCmdTestCase(SambaToolCmdTest):
             expires = nttime2unix(int("%s" % found.get("accountExpires")))
             self.assertWithin(expires, twodays, 5, "Ensure account expires is within 5 seconds of the expected time")
 
-        # TODO: renable this after the filter case is sorted out
+        # TODO: re-enable this after the filter case is sorted out
         if "filters are broken, bail now":
             return
 
index 3db6ffddacd03a13c297df797f5a7a42484e4d2c..4efa9a62a3961c35bfd559b4b998dea84d3f50d2 100644 (file)
@@ -415,7 +415,7 @@ class UserCmdCryptShaTestCase(SambaToolCmdTest):
         self.assertEqual(sha512, _get_attribute(out, "virtualCryptSHA512"))
 
         # As the number of rounds did not match, should have returned the
-        # first hash of the coresponding scheme
+        # first hash of the corresponding scheme
         out = self._get_password("virtualCryptSHA256," +
                                  "virtualCryptSHA512")
         self.assertEqual(sha256, _get_attribute(out, "virtualCryptSHA256"))
index 6c1c6295b85544ff315b72a382b6b7ec129f0385..98619a43fae9d0a3b9b57af0eeb50ae7aa4de3c2 100644 (file)
@@ -178,7 +178,7 @@ class UserCmdCryptShaTestCaseUserPassword(UserCmdCryptShaTestCase):
         self.assertEquals(sha512, _get_attribute(out, "virtualCryptSHA512"))
 
         # As the number of rounds did not match, should have returned the
-        # first hash of the coresponding scheme
+        # first hash of the corresponding scheme
         out = self._get_password("virtualCryptSHA256," +
                                  "virtualCryptSHA512")
         self.assertEquals(sha256, _get_attribute(out, "virtualCryptSHA256"))
index c06eabe30c70381734377237c25dd917cc78a43a..78b757e4e210e069a260e3347601342ce96b8aeb 100755 (executable)
@@ -369,7 +369,7 @@ class SMBNotifyTests(TestCase):
         # trigger notification for both
         self.smb_conn.rmdir(private_path)
 
-        # check that both get thte notification
+        # check that both get the notification
         changes = notify_unpriv.get_changes(wait=True)
         self.assertIsNotNone(changes)
         self.assertEqual(changes[0]['name'], private_rel)
index b49bcc0828f8094dc2fff733fc693e21b9a1a274..ede1818bf89f4a2b02c655656a684b4d67bad444 100644 (file)
@@ -42,7 +42,7 @@ class SmbdBaseTests(TestCaseInTempDir):
         self.assertEqual(self.get_umask(), TEST_UMASK,
                          "umask unexpectedly overridden by test")
 
-        # restore the original umask value (before we interferred with it)
+        # restore the original umask value (before we interfered with it)
         os.umask(self.orig_umask)
 
         super(SmbdBaseTests, self).tearDown()
index d2aa49309f3db0917da3abe68d702732052ad30d..745b75337fc5c14adbe41b6f228f7d9c9894db08 100644 (file)
@@ -54,7 +54,8 @@ class XattrTests(TestCase):
             samba.xattr_native.wrap_setxattr(tempf, "user.unittests",
                                              ndr_pack(ntacl))
         except IOError:
-            raise SkipTest("the filesystem where the tests are runned do not support XATTR")
+            raise SkipTest("the filesystem where the tests are run does not "
+                           "support XATTR")
         os.unlink(tempf)
 
     def test_set_and_get_native(self):
@@ -68,7 +69,8 @@ class XattrTests(TestCase):
             text = samba.xattr_native.wrap_getxattr(tempf, "user.unittests")
             self.assertEqual(text, reftxt)
         except IOError:
-            raise SkipTest("the filesystem where the tests are runned do not support XATTR")
+            raise SkipTest("the filesystem where the tests are run does not "
+                           "support XATTR")
         os.unlink(tempf)
 
     def test_set_xattr_tdb(self):