def METHOD_NAME(self, master_client, create_and_delete_master):
    masters = master_client.list_masters()
    # 判断 ip 存在返回的数据中
    detail, is_exist = {}, False
    for master in masters:
        if master["inner_ip"] == FAKE_INNER_IP:
            detail, is_exist = master, True
            break
    assert is_exist
    # 判断包含对应的字段
    for field_name in ["inner_ip", "idc", "rack", "device_class", "bk_cloud_id", "agent"]:
        assert field_name in detail