test_pick_parallel_docs
Test the ParallelPicker class.
TestParallelPicker
Bases: unittest.TestCase
Test the ParallelPicker class.
Source code in /home/anders/projects/CorpusTools/corpustools/test/test_pick_parallel_docs.py
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 |
|
make_tempdir()
Make tempdir where ParallelPicker will do its magic.
Source code in /home/anders/projects/CorpusTools/corpustools/test/test_pick_parallel_docs.py
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
|
setUp()
Make the ParallelPicker work on tempdir.
Source code in /home/anders/projects/CorpusTools/corpustools/test/test_pick_parallel_docs.py
95 96 97 98 99 100 101 102 103 104 |
|
tearDown()
Cleanup after tests are done.
Source code in /home/anders/projects/CorpusTools/corpustools/test/test_pick_parallel_docs.py
106 107 108 |
|
test_calculate_language1()
Check that the correct language is found.
Source code in /home/anders/projects/CorpusTools/corpustools/test/test_pick_parallel_docs.py
110 111 112 113 |
|
test_copy_valid_parallels()
Only copy in the nob-sme pair, and align them.
Source code in /home/anders/projects/CorpusTools/corpustools/test/test_pick_parallel_docs.py
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 |
|
test_find_lang1_files()
Check that lang1 files are found.
Source code in /home/anders/projects/CorpusTools/corpustools/test/test_pick_parallel_docs.py
146 147 148 149 150 151 |
|
test_get_parallel_language()
Check that the correct parallel language is set.
Source code in /home/anders/projects/CorpusTools/corpustools/test/test_pick_parallel_docs.py
115 116 117 |
|
test_has_parallel1()
Parallel exists, parallel_text points to correct place.
Source code in /home/anders/projects/CorpusTools/corpustools/test/test_pick_parallel_docs.py
119 120 121 122 123 124 |
|
test_has_parallel2()
parallel_text points to wrong language.
Source code in /home/anders/projects/CorpusTools/corpustools/test/test_pick_parallel_docs.py
126 127 128 129 130 131 132 133 134 |
|
test_has_parallel3()
parallel_text points to wrong file.
Source code in /home/anders/projects/CorpusTools/corpustools/test/test_pick_parallel_docs.py
136 137 138 139 140 141 142 143 144 |
|