def test_graphql_to_attachment_simple(): data = {"__typename": "Unknown", "legacy_attachment_id": "1234"} assert fbchat.Attachment(uid="1234") == graphql_to_attachment(data)
def test_graphql_to_attachment_empty(): assert fbchat.Attachment() == graphql_to_attachment({"__typename": "Unknown"})