[tests/output] Improve pango tests
This commit is contained in:
parent
d2a35f7d02
commit
dc5bfd1fc6
1 changed files with 5 additions and 3 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue