(self)
| 1105 | assert bx.get("test", None) is None |
| 1106 | |
| 1107 | def test_inheritance_copy(self): |
| 1108 | class Box2(Box): |
| 1109 | pass |
| 1110 | |
| 1111 | class SBox2(SBox): |
| 1112 | pass |
| 1113 | |
| 1114 | class ConfigBox2(ConfigBox): |
| 1115 | pass |
| 1116 | |
| 1117 | b = Box2(a=1) |
| 1118 | c = b.copy() |
| 1119 | assert c == b |
| 1120 | assert isinstance(c, Box) |
| 1121 | c = b.__copy__() |
| 1122 | assert c == b |
| 1123 | assert isinstance(c, Box) |
| 1124 | |
| 1125 | d = SBox2(a=1) |
| 1126 | e = d.copy() |
| 1127 | assert e == d |
| 1128 | assert isinstance(e, SBox) |
| 1129 | e = d.__copy__() |
| 1130 | assert e == d |
| 1131 | assert isinstance(e, SBox) |
| 1132 | |
| 1133 | f = ConfigBox2(a=1) |
| 1134 | g = f.copy() |
| 1135 | assert g == f |
| 1136 | assert isinstance(g, ConfigBox) |
| 1137 | g = f.__copy__() |
| 1138 | assert g == f |
| 1139 | assert isinstance(g, ConfigBox) |
| 1140 | |
| 1141 | def test_inheritance(self): |
| 1142 | data = { |
nothing calls this directly
no test coverage detected