Skip to content

Instantly share code, notes, and snippets.

@timlinux
Created February 11, 2015 08:00
Show Gist options
  • Save timlinux/8b3508952904c24cfdab to your computer and use it in GitHub Desktop.
Save timlinux/8b3508952904c24cfdab to your computer and use it in GitHub Desktop.
Example unit test for inasafe issue #1159
from encodings.utf_8 import encode
__author__ = 'timlinux'
import unittest
from safe.messaging.item.text import PlainText
class TestText(unittest.TestCase):
def test_plain_text(self):
text = encode('Helloᶁ world')
try:
PlainText(text)
except:
raise
if __name__ == '__main__':
unittest.main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment