(self)
| 160 | return list(iter_test_cases(suite)) |
| 161 | |
| 162 | def test_shuffle_tests(self): |
| 163 | tests = self.make_tests() |
| 164 | # Choose a seed that shuffles both the classes and methods. |
| 165 | shuffler = Shuffler(seed=9) |
| 166 | shuffled_tests = shuffle_tests(tests, shuffler) |
| 167 | self.assertIsInstance(shuffled_tests, collections.abc.Iterator) |
| 168 | self.assertTestNames( |
| 169 | shuffled_tests, |
| 170 | expected=[ |
| 171 | "Tests2.test1", |
| 172 | "Tests2.test2", |
| 173 | "Tests1.test2", |
| 174 | "Tests1.test1", |
| 175 | ], |
| 176 | ) |
| 177 | |
| 178 | def test_reorder_test_bin_no_arguments(self): |
| 179 | tests = self.make_tests() |
nothing calls this directly
no test coverage detected