()
| 414 | def testSingleResource(self): |
| 415 | cm = mock_contextmanager_generator() |
| 416 | def shouldThrow(): |
| 417 | with cm as self.resource: |
| 418 | self.assertInWithManagerInvariants(cm) |
| 419 | self.assertInWithGeneratorInvariants(self.resource) |
| 420 | self.raiseTestException() |
| 421 | self.assertRaises(RuntimeError, shouldThrow) |
| 422 | self.assertAfterWithManagerInvariantsWithError(cm) |
| 423 | self.assertAfterWithGeneratorInvariantsWithError(self.resource) |
nothing calls this directly
no test coverage detected