Esempio n. 1
0
 def test_install(self):
     '''
     Tests if package to be installed exists
     '''
     mock_params = MagicMock(return_value=[None, None])
     with patch.dict(mac_brew.__salt__,
                     {'pkg_resource.parse_targets': mock_params}):
         self.assertEqual(mac_brew.install('name=foo'), {})
Esempio n. 2
0
 def test_install(self):
     '''
     Tests if package to be installed exists
     '''
     mock_params = MagicMock(return_value=[None, None])
     with patch.dict(mac_brew.__salt__,
                     {'pkg_resource.parse_targets': mock_params}):
         self.assertEqual(mac_brew.install('name=foo'), {})