test_plaintextconverter
Test conversion of plaintext files.
TestPlaintextConverter
Bases: XMLTester
Test the PlaintextConverter.
Source code in corpustools/test/test_plaintextconverter.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | |
test_hyph()
Check that hyph is conserved.
Source code in corpustools/test/test_plaintextconverter.py
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | |
test_plaintext()
Check that an empty line signal paragraph.
Source code in corpustools/test/test_plaintextconverter.py
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | |
test_skip_lines()
Check that lines are skipped.
Source code in corpustools/test/test_plaintextconverter.py
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | |
test_strip_chars1()
Check that weird chars are converted as exptected.
Source code in corpustools/test/test_plaintextconverter.py
55 56 57 58 59 60 61 62 63 | |
test_strip_chars2()
Check that special chars are converted as expected.
Source code in corpustools/test/test_plaintextconverter.py
65 66 67 68 69 70 71 72 73 74 | |
test_to_unicode()
Check that winsami2 is converted to unicode.
Source code in corpustools/test/test_plaintextconverter.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | |
test_two_lines()
Test that two consecutive lines are treated as a paragraph.
Source code in corpustools/test/test_plaintextconverter.py
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 | |