def test_stop(self):
        mock = MagicMock(return_value="Ok")
        with patch.dict(bluez.__salt__, {'service.stop': mock}):
            self.assertEqual(bluez.stop(), "Ok")
Test to stop bluetooth service
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/bluez_test.py/BluezTestCase.test_stop