| Conditions | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | # pylint: disable=redefined-outer-name |
||
| 26 | def test_attribute_order_is_maintained(sample): |
||
| 27 | sample.string = "Hello, world!" |
||
| 28 | sample.number_int = 42 |
||
| 29 | sample.number_real = 4.2 |
||
| 30 | sample.truthy = False |
||
| 31 | sample.falsey = True |
||
| 32 | |||
| 33 | assert strip(""" |
||
| 34 | string: Hello, world! |
||
| 35 | number_int: 42 |
||
| 36 | number_real: 4.2 |
||
| 37 | truthy: false |
||
| 38 | falsey: true |
||
| 39 | """) == sample.__mapper__.text |
||
| 40 |