@patch('os.path.exists')
    def test_has_powerpath(self, mock_exists):
        mock_exists.return_value = True
        self.assertTrue(powerpath.has_powerpath())

        mock_exists.return_value = False
        self.assertFalse(powerpath.has_powerpath())
Test for powerpath
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/powerpath_test.py/PowerpathTestCase.test_has_powerpath