def test_from_dict(): c1 = Card("something", "brian", "todo", 123) c2_dict = { "summary": "something", "owner": "brian", "state": "todo", "id": 123, } c2 = Card.from_dict(c2_dict) assert c1 == c2