def METHOD_NAME():
    """UT: nxos module:_ping_nxapi method"""
    result = nxos_proxy._ping_nxapi()
    assert not result
    with patch("salt.proxy.nxos.DEVICE_DETAILS", {"up": True}):
        result = nxos_proxy._ping_nxapi()
        assert result