Mercurial > hgrepos > Python > libs > ConfigMix
comparison tests/test.py @ 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 | ab33d51f3412 |
| children | d81d2cdf4925 |
comparison
equal
deleted
inserted
replaced
| 326:b7abfbfe806d | 327:30f8dce82850 |
|---|---|
| 779 def test_reference2(self): | 779 def test_reference2(self): |
| 780 self.assertEqual( | 780 self.assertEqual( |
| 781 "value", | 781 "value", |
| 782 self._cfg.getvar_s("events.qc-2021%x2e1-5G-summit.xref.%x23")) | 782 self._cfg.getvar_s("events.qc-2021%x2e1-5G-summit.xref.%x23")) |
| 783 | 783 |
| 784 def test_quoting_and_unquoting_are_inverse(self): | |
| 785 for c in """abc09'"#:|%./""": | |
| 786 self.assertEqual(c, self._cfg.unquote(self._cfg.quote(c))) | |
| 787 | |
| 784 | 788 |
| 785 if __name__ == "__main__": | 789 if __name__ == "__main__": |
| 786 unittest.main() | 790 unittest.main() |
