Exemple #1
0
 def test_list_taps(self):
     '''
     Tests the return of the list of taps
     '''
     mock_taps = MagicMock(return_value=TAPS_STRING)
     with patch.dict(brew.__salt__, {'cmd.run': mock_taps}):
         self.assertEqual(brew._list_taps(), TAPS_LIST)
Exemple #2
0
 def test_list_taps(self):
     '''
     Tests the return of the list of taps
     '''
     mock_taps = MagicMock(return_value=TAPS_STRING)
     with patch.dict(brew.__salt__, {'cmd.run': mock_taps}):
         self.assertEqual(brew._list_taps(), TAPS_LIST)
Exemple #3
0
 def test_list_taps(self):
     '''
     Tests the return of the list of taps
     '''
     mock_taps = MagicMock(return_value={'stdout': TAPS_STRING})
     mock_user = MagicMock(return_value='foo')
     moca_cmd = MagicMock(return_value='')
     with patch.dict(brew.__salt__, {'file.get_user': mock_user,
                                     'cmd.run_all': mock_taps,
                                     'cmd.run': moca_cmd}):
         self.assertEqual(brew._list_taps(), TAPS_LIST)
Exemple #4
0
 def test_list_taps(self):
     '''
     Tests the return of the list of taps
     '''
     mock_taps = MagicMock(return_value={'stdout': TAPS_STRING})
     mock_user = MagicMock(return_value='foo')
     moca_cmd = MagicMock(return_value='')
     with patch.dict(brew.__salt__, {'file.get_user': mock_user,
                                     'cmd.run_all': mock_taps,
                                     'cmd.run': moca_cmd}):
         self.assertEqual(brew._list_taps(), TAPS_LIST)