def test_get_all_groups_response_serde() -> None:
    target = Address(name='Alice')
    request_content = {'groups': {'626sadaf631': {'group-name': 'Heart diseases group', 'members': ['user-id1', 'user-id2', 'user-id3'], 'data': [{'id': '264632213', 'permissions': 'read'}, {'id': '264613232', 'permissions': 'write'}, {'id': '896632213', 'permissions': 'read'}]}, 'a84ew64wq6e': {'group-name': 'Brain diseases group', 'members': ['user-id5', 'user-id7', 'user-id9'], 'data': [{'id': '26463afasd', 'permissions': 'read'}, {'id': '264613dafeqwe', 'permissions': 'write'}, {'id': '896632sdfsf', 'permissions': 'read'}]}}}
    msg = GetGroupsResponse(address=target, status_code=200, content=request_content)
    blob = serialize(msg)
    msg2 = sy.deserialize(blob=blob)
    assert (msg.id == msg2.id)
    assert (msg.address == target)
    assert (msg.content == msg2.content)
    assert (msg == msg2)
def test_get_all_groups_response_serde() -> None:
    target = Address(name='Alice')
    request_content = {'groups': {'626sadaf631': {'group-name': 'Heart diseases group', 'members': ['user-id1', 'user-id2', 'user-id3'], 'data': [{'id': '264632213', 'permissions': 'read'}, {'id': '264613232', 'permissions': 'write'}, {'id': '896632213', 'permissions': 'read'}]}, 'a84ew64wq6e': {'group-name': 'Brain diseases group', 'members': ['user-id5', 'user-id7', 'user-id9'], 'data': [{'id': '26463afasd', 'permissions': 'read'}, {'id': '264613dafeqwe', 'permissions': 'write'}, {'id': '896632sdfsf', 'permissions': 'read'}]}}}
    msg = GetGroupsResponse(address=target, status_code=200, content=request_content)
    blob = serialize(msg)
    msg2 = sy.deserialize(blob=blob)
    assert (msg.id == msg2.id)
    assert (msg.address == target)
    assert (msg.content == msg2.content)
    assert (msg == msg2)