コード例 #1
0
ファイル: mac_package_test.py プロジェクト: bryson/salt
 def test_uninstall(self):
     '''
         Test Uninstalling an APP package with a specific target
     '''
     mock = MagicMock()
     with patch.dict(macpackage.__salt__, {'file.remove': mock}):
         macpackage.uninstall_app('/path/to/file.app')
         mock.assert_called_once_with('/path/to/file.app')
コード例 #2
0
ファイル: mac_package_test.py プロジェクト: xbglowx/salt
 def test_uninstall(self):
     '''
         Test Uninstalling an APP package with a specific target
     '''
     mock = MagicMock()
     with patch.dict(macpackage.__salt__, {'file.remove': mock}):
         macpackage.uninstall_app('/path/to/file.app')
         mock.assert_called_once_with('/path/to/file.app')