From dc5bfd1fc6e0b9a87a4ab2433826b1ff6a34cfb4 Mon Sep 17 00:00:00 2001 From: tobi-wan-kenobi Date: Mon, 13 Apr 2020 13:43:07 +0200 Subject: [PATCH] [tests/output] Improve pango tests --- tests/core/test_output.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/core/test_output.py b/tests/core/test_output.py index aeb2d70..87c1017 100644 --- a/tests/core/test_output.py +++ b/tests/core/test_output.py @@ -117,9 +117,11 @@ class i3(unittest.TestCase): self.assertEqual('test', self.someBlock.pangoize('test')) self.assertFalse('markup' in self.someBlock.dict()) - self.assertEqual('test', - self.someBlock.pangoize({ 'pango': { 'attr': 'blub', 'x': 'y', 'full_text': 'test' } }) - ) + pango = self.someBlock.pangoize({ 'pango': { 'attr': 'blub', 'x': 'y', 'full_text': 'test' } }) + self.assertTrue('attr="blub"' in pango) + self.assertTrue('x="y"' in pango) + self.assertTrue('test' in pango) self.assertEqual('pango', self.someBlock.dict()['markup']) def test_padding(self):