(self)
| 44 | self.assertIsNotNone(MyContext.current()) |
| 45 | |
| 46 | def testNonDefaultCurrent(self): |
| 47 | with self.assertRaises(AssertionError): |
| 48 | MyContext.current() |
| 49 | |
| 50 | ctx = MyContext() |
| 51 | self.assertEqual(MyContext.current(value=ctx), ctx) |
| 52 | |
| 53 | self.assertIsNone(MyContext.current(required=False)) |
| 54 | |
| 55 | def testDefaultCurrent(self): |
| 56 | self.assertIsInstance(DefaultMyContext.current(), DefaultMyContext) |
nothing calls this directly
no test coverage detected