def test_has_powerpath(self, mock_exists): ''' Test for powerpath ''' mock_exists.return_value = True self.assertTrue(powerpath.has_powerpath()) mock_exists.return_value = False self.assertFalse(powerpath.has_powerpath())
def test_has_powerpath(self): """ Test for powerpath """ with patch("os.path.exists") as mock_exists: mock_exists.return_value = True self.assertTrue(powerpath.has_powerpath()) mock_exists.return_value = False self.assertFalse(powerpath.has_powerpath())
def test_has_powerpath(): """ Test for powerpath """ with patch("os.path.exists") as mock_exists: mock_exists.return_value = True assert powerpath.has_powerpath() mock_exists.return_value = False assert not powerpath.has_powerpath()
def test_has_powerpath(self): ''' Test for powerpath ''' with patch('os.path.exists') as mock_exists: mock_exists.return_value = True self.assertTrue(powerpath.has_powerpath()) mock_exists.return_value = False self.assertFalse(powerpath.has_powerpath())