(self)
| 98 | TestConfig3._restore_configuration(self.saved3) |
| 99 | |
| 100 | def checkSubclasses(self): |
| 101 | # no matter how the class is configured, it should always be |
| 102 | # possible to instantiate the subclasses directly |
| 103 | self.assertIsInstance(TestConfig1(), TestConfig1) |
| 104 | self.assertIsInstance(TestConfig2(), TestConfig2) |
| 105 | |
| 106 | obj = TestConfig1(a=1) |
| 107 | self.assertEqual(obj.a, 1) |
| 108 | obj2 = TestConfig2(b=2) |
| 109 | self.assertEqual(obj2.b, 2) |
| 110 | |
| 111 | def test_default(self): |
| 112 | # In these tests we combine a typing.cast to satisfy mypy with |
no test coverage detected