def test_simple_id_serialize(): s = Simple(id="1", value="12") assert s.serialize() == {'id': "1", 'value': '12'}
def test_simple_serialize(): s = Simple(value="12") assert s.serialize() == {"id": None, "value": "12"}