def test_tuple(self, testdata: TestData) -> None: """Test tuple-conversion.""" for data in testdata['user']: user = User.from_dict(data) assert tuple(data.values()) == user.to_tuple()
def test_dict(self, testdata: TestData) -> None: """Test round-trip of dict translations.""" for data in testdata['user']: user = User.from_dict(data) assert data == user.to_dict()