changeset 327:30f8dce82850

Test that quote() and unquote() are inverse
author Franz Glasner <fzglas.hg@dom66.de>
date Thu, 06 May 2021 22:23:34 +0200
parents b7abfbfe806d
children cffa4fcd0a4d
files tests/test.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test.py	Thu May 06 22:16:56 2021 +0200
+++ b/tests/test.py	Thu May 06 22:23:34 2021 +0200
@@ -781,6 +781,10 @@
             "value",
             self._cfg.getvar_s("events.qc-2021%x2e1-5G-summit.xref.%x23"))
 
+    def test_quoting_and_unquoting_are_inverse(self):
+        for c in """abc09'"#:|%./""":
+            self.assertEqual(c, self._cfg.unquote(self._cfg.quote(c)))
+
 
 if __name__ == "__main__":
     unittest.main()