diff --git a/tests/test_order.py b/tests/test_order.py index 61a3990..dd5b500 100644 --- a/tests/test_order.py +++ b/tests/test_order.py @@ -3,10 +3,19 @@ import marshmallow_recipe as mr -def test_order(): +def test_order_1(): @dataclasses.dataclass class A: a: int b: int assert [name for name in mr.dump(A(a=1, b=2))] == ["a", "b"] + + +def test_order_2(): + @dataclasses.dataclass + class A: + b: int + a: int + + assert [name for name in mr.dump(A(b=1, a=2))] == ["b", "a"]