aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_reader_nonUTF8.py
blob: 12d38f68d9e037aa8338ee815ba8b3cc89fd4431 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# -*- 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()