(self)
| 134 | self.assertTrue(c2.config is c3.config) |
| 135 | |
| 136 | def test_inheritance(self): |
| 137 | config = Config() |
| 138 | config.MyConfigurable.a = 2 |
| 139 | config.MyConfigurable.b = 2.0 |
| 140 | c1 = MyConfigurable(config=config) |
| 141 | c2 = MyConfigurable(config=c1.config) |
| 142 | self.assertEqual(c1.a, config.MyConfigurable.a) |
| 143 | self.assertEqual(c1.b, config.MyConfigurable.b) |
| 144 | self.assertEqual(c2.a, config.MyConfigurable.a) |
| 145 | self.assertEqual(c2.b, config.MyConfigurable.b) |
| 146 | |
| 147 | def test_parent(self): |
| 148 | config = Config() |
nothing calls this directly
no test coverage detected