Commit 7297401f authored by Matěj Cepl's avatar Matěj Cepl

Adding non-UTF8 test string

parent 977d275c
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import yamlish
import test
import unittest
test_data_list = [{
"name": 'Non UTF8 test',
"in": ['--- \xbd\xd0\xe1 \xd1\xeb\xdb\xde \xdc\xdd\xde\xd3\xde' +
'\xdd\xd0 \xe7\xd5\xdb\xdd\xd5;\n', '...', ],
"out": "Нас было много на челне;",
}]
class TestReader(unittest.TestCase): # IGNORE:C0111
pass
test.generate_testsuite(test_data_list, TestReader, yamlish.load)
if __name__ == "__main__":
unittest.main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment