Test setting fields. Args: complex_child: A child class.
(complex_child)
| 78 | |
| 79 | |
| 80 | def test_complex_set(complex_child): |
| 81 | """Test setting fields. |
| 82 | |
| 83 | Args: |
| 84 | complex_child: A child class. |
| 85 | """ |
| 86 | complex_child.set(num=1, key="a", name="Jane Doe", age=28, active=False) |
| 87 | assert complex_child.num == 1 |
| 88 | assert complex_child.key == "a" |
| 89 | assert complex_child.name == "Jane Doe" |
| 90 | assert complex_child.age == 28 |
| 91 | assert complex_child.active is False |
| 92 | |
| 93 | |
| 94 | def test_complex_json(complex_child): |