From bf4b6367bf2acd3a43f03b910a2383c00145f4b3 Mon Sep 17 00:00:00 2001 From: Florian Bach Date: Sun, 31 Jul 2022 10:28:05 +0200 Subject: [PATCH] Remove test for Wine registry code --- tests/main.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/main.py b/tests/main.py index 824f9c9..ccaca93 100755 --- a/tests/main.py +++ b/tests/main.py @@ -25,7 +25,6 @@ except ImportError: import libadobe # type: ignore import libadobeAccount # type: ignore import libadobeFulfill # type: ignore -from getEncryptionKeyLinux import unfuck as fix_wine_username # type: ignore from libpdf import trim_encrypt_string, cleanup_encrypt_element, deflate_and_base64_encode # type: ignore from customRSA import CustomRSA # type: ignore @@ -337,13 +336,6 @@ class TestOther(unittest.TestCase): def forcefail(self): self.assertEqual(1, 2, "force fail") - @unittest.skipIf(os.name == "nt", "not testing wine on Windows") - def test_wineUsernameEscaping(self): - '''Check if Wine username decoder is working properly''' - - self.assertEqual(fix_wine_username(r'"1234"'), b'1234', "Wine username mismatch") - self.assertEqual(fix_wine_username(r'"a\x00e931"'), b'a\xe931', "Wine username mismatch with UTF-8") - def test_pdf_trimEncrypt(self): '''Check if PDF encryption string trimming code is working properly'''