# HG changeset patch # User Franz Glasner # Date 1620332614 -7200 # Node ID 30f8dce828504af0b70052657e52bf2efeeb4f59 # Parent b7abfbfe806d91bf4d352bdaae4a85da923552fe Test that quote() and unquote() are inverse diff -r b7abfbfe806d -r 30f8dce82850 tests/test.py --- 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()