Same as enterContext, but class-wide.
(cls, cm)
| 486 | |
| 487 | @classmethod |
| 488 | def enterClassContext(cls, cm): |
| 489 | """Same as enterContext, but class-wide.""" |
| 490 | return _enter_context(cm, cls.addClassCleanup) |
| 491 | |
| 492 | def setUp(self): |
| 493 | "Hook method for setting up the test fixture before exercising it." |