Created
February 11, 2015 08:00
-
-
Save timlinux/8b3508952904c24cfdab to your computer and use it in GitHub Desktop.
Example unit test for inasafe issue #1159
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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