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