(self)
| 276 | self.assertEqual(s, "35 loops, best of 5: 2 sec per loop\n") |
| 277 | |
| 278 | def test_main_setup(self): |
| 279 | s = self.run_main(seconds_per_increment=2.0, |
| 280 | switches=['-n35', '-s', 'print("CustomSetup")']) |
| 281 | self.assertEqual(s, "CustomSetup\n" * DEFAULT_REPEAT + |
| 282 | "35 loops, best of 5: 2 sec per loop\n") |
| 283 | |
| 284 | def test_main_multiple_setups(self): |
| 285 | s = self.run_main(seconds_per_increment=2.0, |
nothing calls this directly
no test coverage detected