Create a dictionary an object with a this table: index | key | value ----- | --- | ----- 0 | 'b' | 'value' 1 | 'b' | NULL
()
| 1317 | def test_125868(self): |
| 1318 | |
| 1319 | def make_special_dict(): |
| 1320 | """Create a dictionary an object with a this table: |
| 1321 | index | key | value |
| 1322 | ----- | --- | ----- |
| 1323 | 0 | 'b' | 'value' |
| 1324 | 1 | 'b' | NULL |
| 1325 | """ |
| 1326 | class A: |
| 1327 | pass |
| 1328 | a = A() |
| 1329 | a.a = 1 |
| 1330 | a.b = 2 |
| 1331 | d = a.__dict__.copy() |
| 1332 | del d['a'] |
| 1333 | del d['b'] |
| 1334 | d['b'] = "value" |
| 1335 | return d |
| 1336 | |
| 1337 | class NoInlineAorB: |
| 1338 | pass |