Test that we can get class attributes.
()
| 497 | |
| 498 | |
| 499 | def test_class_attributes(): |
| 500 | """Test that we can get class attributes.""" |
| 501 | prop = TestState.obj.prop1 |
| 502 | assert str(prop) == f'{TestState.get_name()}.obj{FIELD_MARKER}?.["prop1"]' |
| 503 | |
| 504 | prop = TestState.complex[1].prop1 |
| 505 | assert str(prop) == f'{TestState.get_name()}.complex{FIELD_MARKER}?.[1]?.["prop1"]' |
| 506 | |
| 507 | |
| 508 | def test_get_parent_state(): |