1 | n/a | # -*- encoding: utf-8 -*- |
---|
2 | n/a | |
---|
3 | n/a | # This is a package that contains a number of modules that are used to |
---|
4 | n/a | # test import from the source files that have different encodings. |
---|
5 | n/a | # This file (the __init__ module of the package), is encoded in utf-8 |
---|
6 | n/a | # and contains a list of strings from various unicode planes that are |
---|
7 | n/a | # encoded differently to compare them to the same strings encoded |
---|
8 | n/a | # differently in submodules. The following list, test_strings, |
---|
9 | n/a | # contains a list of tuples. The first element of each tuple is the |
---|
10 | n/a | # suffix that should be prepended with 'module_' to arrive at the |
---|
11 | n/a | # encoded submodule name, the second item is the encoding and the last |
---|
12 | n/a | # is the test string. The same string is assigned to the variable |
---|
13 | n/a | # named 'test' inside the submodule. If the decoding of modules works |
---|
14 | n/a | # correctly, from module_xyz import test should result in the same |
---|
15 | n/a | # string as listed below in the 'xyz' entry. |
---|
16 | n/a | |
---|
17 | n/a | # module, encoding, test string |
---|
18 | n/a | test_strings = ( |
---|
19 | n/a | ('iso_8859_1', 'iso-8859-1', "Les hommes ont oublié cette vérité, " |
---|
20 | n/a | "dit le renard. Mais tu ne dois pas l'oublier. Tu deviens " |
---|
21 | n/a | "responsable pour toujours de ce que tu as apprivoisé."), |
---|
22 | n/a | ('koi8_r', 'koi8-r', "Ðознание беÑконеÑноÑÑи ÑÑебÑÐµÑ Ð±ÐµÑконеÑного вÑемени.") |
---|
23 | n/a | ) |
---|