diff options
author | Bas Couwenberg <sebastic@xs4all.nl> | 2020-05-04 09:19:57 +0300 |
---|---|---|
committer | Marek Blaha <mblaha@redhat.com> | 2020-05-04 10:29:50 +0300 |
commit | 7a24a38079b5847a8368f5ac700989418d2d057a (patch) | |
tree | 1bb981e86dd6b858141bec4e9004ffcc7f7e2fb3 /tests | |
parent | 9f3f3be6359d8f9b6b269e28d9ae1f279cc5f3aa (diff) |
Fix spelling errors.
* catched -> caught
* formated -> formatted
* guaranted -> guaranteed
* intances -> instances
* overwirte -> overwrite
* possitive -> positive
* prefered -> preferred
* shoud -> should
Diffstat (limited to 'tests')
-rw-r--r-- | tests/python/tests/test_load_metadata.py | 2 | ||||
-rw-r--r-- | tests/python/tests/test_package.py | 2 | ||||
-rw-r--r-- | tests/python/tests/test_parsepkg.py | 4 | ||||
-rw-r--r-- | tests/python/tests/test_repomd.py | 4 | ||||
-rw-r--r-- | tests/python/tests/test_repomdrecord.py | 6 | ||||
-rw-r--r-- | tests/python/tests/test_sqlite.py | 4 |
6 files changed, 11 insertions, 11 deletions
diff --git a/tests/python/tests/test_load_metadata.py b/tests/python/tests/test_load_metadata.py index 041cb89..744ddb2 100644 --- a/tests/python/tests/test_load_metadata.py +++ b/tests/python/tests/test_load_metadata.py @@ -61,6 +61,6 @@ class TestCaseLoadMetadata(unittest.TestCase): md = cr.Metadata(use_single_chunk=True) md.locate_and_load_xml(REPO_02_PATH) pkg = md.get('90f61e546938a11449b710160ad294618a5bd3062e46f8cf851fd0088af184b7') - del(md) # in fact, md shoudnot be destroyed yet, because it is + del(md) # in fact, md should not be destroyed yet, because it is # referenced from pkg! self.assertEqual(pkg.name, "fake_bash") diff --git a/tests/python/tests/test_package.py b/tests/python/tests/test_package.py index bb2ea28..62c8fbe 100644 --- a/tests/python/tests/test_package.py +++ b/tests/python/tests/test_package.py @@ -221,7 +221,7 @@ class TestCasePackage(unittest.TestCase): self.assertFalse(id(pkg_a) == id(pkg_d)) self.assertFalse(id(pkg_c) == id(pkg_d)) - # Next lines shoud not fail (if copy really works) + # Next lines should not fail (if copy really works) del(pkg_a) del(pkg_b) self.assertEqual(pkg_c.name, "FooPackage") diff --git a/tests/python/tests/test_parsepkg.py b/tests/python/tests/test_parsepkg.py index 0569577..efe2bbf 100644 --- a/tests/python/tests/test_parsepkg.py +++ b/tests/python/tests/test_parsepkg.py @@ -40,7 +40,7 @@ class TestCaseParsepkg(unittest.TestCase): # Test error cases # Rpm doesn't exists - self.assertRaises(IOError, cr.package_from_rpm, "this_foo_pkg_shoud_not_exists.rpm") + self.assertRaises(IOError, cr.package_from_rpm, "this_foo_pkg_should_not_exists.rpm") # Path is a directory, not a file self.assertRaises(IOError, cr.package_from_rpm, "./") @@ -59,7 +59,7 @@ class TestCaseParsepkg(unittest.TestCase): # Test error cases # Rpm doesn't exists - self.assertRaises(IOError, cr.xml_from_rpm, "this_foo_pkg_shoud_not_exists.rpm") + self.assertRaises(IOError, cr.xml_from_rpm, "this_foo_pkg_should_not_exists.rpm") # Path is a directory, not a file self.assertRaises(IOError, cr.xml_from_rpm, "./") diff --git a/tests/python/tests/test_repomd.py b/tests/python/tests/test_repomd.py index 98f79d2..c7e987d 100644 --- a/tests/python/tests/test_repomd.py +++ b/tests/python/tests/test_repomd.py @@ -28,7 +28,7 @@ class TestCaseRepomd(unittest.TestCase): rec.fill(cr.SHA256) rec.rename_file() - # Filename shoud contain a (valid) checksum + # Filename should contain a (valid) checksum self.assertEqual(os.listdir(self.tmpdir), ['1cb61ea996355add02b1426ed4c1780ea75ce0c04c5d1107c025c3fbd7d8bcae-primary.xml.gz']) @@ -40,7 +40,7 @@ class TestCaseRepomd(unittest.TestCase): self.assertTrue(md) xml = md.xml_dump() - # Revision shoud be current Unix time + # Revision should be current Unix time self.assertTrue(re.search(r"<revision>[0-9]+</revision>", xml)) self.assertEqual(md.revision, None) diff --git a/tests/python/tests/test_repomdrecord.py b/tests/python/tests/test_repomdrecord.py index 9da48ff..f92c2e2 100644 --- a/tests/python/tests/test_repomdrecord.py +++ b/tests/python/tests/test_repomdrecord.py @@ -106,7 +106,7 @@ class TestCaseRepomdRecord(unittest.TestCase): zrc.rename_file() - # Filename shoud contain a (valid) checksum + # Filename should contain a (valid) checksum filelist = os.listdir(self.tmpdir) filelist.sort() self.assertEqual(filelist, @@ -169,14 +169,14 @@ class TestCaseRepomdRecord(unittest.TestCase): self.assertTrue(rec) rec_compressed = rec.compress_and_fill(cr.SHA256, cr.GZ_COMPRESSION) - # A new compressed file shoud be created + # A new compressed file should be created self.assertEqual(sorted(os.listdir(self.tmpdir)), sorted(['primary.xml.gz', 'primary.xml'])) rec.rename_file() rec_compressed.rename_file() - # Filename shoud contain a (valid) checksum + # Filename should contain a (valid) checksum self.assertEqual(sorted(os.listdir(self.tmpdir)), sorted(['10091f8e2e235ae875cb18c91c443891c7f1a599d41f44d518e8af759a6c8109-primary.xml.gz', 'b33fc63178d852333a826385bc15d9b72cb6658be7fb927ec28c4e40b5d426fb-primary.xml'])) diff --git a/tests/python/tests/test_sqlite.py b/tests/python/tests/test_sqlite.py index 2f02201..045b0fc 100644 --- a/tests/python/tests/test_sqlite.py +++ b/tests/python/tests/test_sqlite.py @@ -57,8 +57,8 @@ class TestCaseSqlite(unittest.TestCase): self.assertRaises(cr.CreaterepoCError, db.add_pkg, pkg) self.assertRaises(cr.CreaterepoCError, db.dbinfo_update, "somechecksum") - db.close() # No error shoud be raised - del db # No error shoud be raised + db.close() # No error should be raised + del db # No error should be raised def test_sqlite_primary_schema(self): path = os.path.join(self.tmpdir, "primary.db") |