def METHOD_NAME():
    """
    Test of turning off of scanning modes
    """
    mock = MagicMock(
        side_effect=[
            {},
            {"hci0": {"device": "hci0", "power": "on"}},
            {"hci0": {"device": "hci0", "power": "on"}},
        ]
    )
    with patch.object(bluez, "address_", mock):
        pytest.raises(CommandExecutionError, bluez.noscan, "hci0")
        mock = MagicMock(return_value="SCAN")
        with patch.dict(bluez.__salt__, {"cmd.run": mock}):
            assert not bluez.noscan("hci0")
        mock = MagicMock(return_value="")
        with patch.dict(bluez.__salt__, {"cmd.run": mock}):
            assert bluez.noscan("hci0")