(self)
| 143 | ts.prepare() |
| 144 | |
| 145 | def test_prepare_after_pass_out(self): |
| 146 | ts = graphlib.TopologicalSorter({'a': 'bc'}) |
| 147 | ts.prepare() |
| 148 | self.assertEqual(set(ts.get_ready()), {'b', 'c'}) |
| 149 | with self.assertRaisesRegex(ValueError, r"cannot prepare\(\) after starting sort"): |
| 150 | ts.prepare() |
| 151 | |
| 152 | def test_prepare_cycleerror_each_time(self): |
| 153 | ts = graphlib.TopologicalSorter({'a': 'b', 'b': 'a'}) |
nothing calls this directly
no test coverage detected