test_epubchooser
Test the functionality in epubchooser.
TestRangeHandler
Bases: unittest.TestCase
Test the MetadataHandler class.
Source code in /home/anders/projects/CorpusTools/corpustools/test/test_epubchooser.py
26 27 28 29 30 31 32 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 |
|
test1()
Check that an exception is raised when first xpath is empty.
Source code in /home/anders/projects/CorpusTools/corpustools/test/test_epubchooser.py
43 44 45 46 |
|
test10()
Check that a range is reversed if needed.
Source code in /home/anders/projects/CorpusTools/corpustools/test/test_epubchooser.py
127 128 129 130 131 132 133 134 135 136 137 138 139 |
|
test11()
Check that ranges are returned reversed and as text.
Source code in /home/anders/projects/CorpusTools/corpustools/test/test_epubchooser.py
141 142 143 144 145 146 147 148 149 150 151 152 |
|
test12()
Check that empty second part of range works as exptected.
Source code in /home/anders/projects/CorpusTools/corpustools/test/test_epubchooser.py
154 155 156 157 158 159 160 161 162 163 164 |
|
test2()
Check that an exception is raised when first xpath is invalid.
Source code in /home/anders/projects/CorpusTools/corpustools/test/test_epubchooser.py
48 49 50 51 |
|
test3()
Check that an exception is raised when second xpath is invalid.
Source code in /home/anders/projects/CorpusTools/corpustools/test/test_epubchooser.py
53 54 55 56 |
|
test4()
Valid first part, empty second part is a valid pair.
Source code in /home/anders/projects/CorpusTools/corpustools/test/test_epubchooser.py
58 59 60 61 62 |
|
test5()
Valid first part, valid second part is a valid pair.
Source code in /home/anders/projects/CorpusTools/corpustools/test/test_epubchooser.py
64 65 66 67 68 69 70 71 |
|
test6()
First part of new range is within existing ranges.
Source code in /home/anders/projects/CorpusTools/corpustools/test/test_epubchooser.py
73 74 75 76 77 78 79 80 81 82 83 84 |
|
test7()
Second part of new range is within existing ranges.
Source code in /home/anders/projects/CorpusTools/corpustools/test/test_epubchooser.py
86 87 88 89 90 91 92 93 94 95 96 97 |
|
test8()
First part of new range is equal to first part of existing range.
Source code in /home/anders/projects/CorpusTools/corpustools/test/test_epubchooser.py
99 100 101 102 103 104 105 106 107 108 109 110 |
|
test9()
Check for valid range.
Second part of new range is equal to first part of existing range.
Source code in /home/anders/projects/CorpusTools/corpustools/test/test_epubchooser.py
112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
|