Same as enterContext, but class-wide.
(cls, cm)
| 493 | |
| 494 | @classmethod |
| 495 | def enterClassContext(cls, cm): |
| 496 | """Same as enterContext, but class-wide.""" |
| 497 | return _enter_context(cm, cls.addClassCleanup) |
| 498 | |
| 499 | def setUp(self): |
| 500 | "Hook method for setting up the test fixture before exercising it." |