Skip to content

Commit

Permalink
Tests for brackets and keys filtering in text items
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillem Cabrera committed Jul 11, 2016
1 parent f9fd27e commit 42c8610
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_vttitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,14 @@ def test_all_tags(self):
self.assertEqual(self.item.text_without_tags,'Bold, italic, underlined' + \
'\nred text, one, two, three.')

def test_bracket_tag(self):
self.item.text = "[b]Hello world ![/b]"
self.assertEqual(self.item.text_without_brackets, 'Hello world !')

def test_key_tag(self):
self.item.text = "{b}Hello world !{/b}"
self.assertEqual(self.item.text_without_keys, 'Hello world !')


class TestShifting(unittest.TestCase):

Expand Down

0 comments on commit 42c8610

Please sign in to comment.