[tests/output] Improve pango tests

This commit is contained in:
tobi-wan-kenobi 2020-04-13 13:43:07 +02:00
parent d2a35f7d02
commit dc5bfd1fc6

View file

@ -117,9 +117,11 @@ class i3(unittest.TestCase):
self.assertEqual('test', self.someBlock.pangoize('test'))
self.assertFalse('markup' in self.someBlock.dict())
self.assertEqual('<span attr="blub" x="y">test</span>',
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('<span ' in pango)
self.assertTrue('>test</span>' in pango)
self.assertEqual('pango', self.someBlock.dict()['markup'])
def test_padding(self):