Esempio n. 1
0
 def test_multipath_list(self):
     '''
     Test for Device-Mapper Multipath list
     '''
     mock = MagicMock(return_value='A')
     with patch.dict(devmap.__salt__, {'cmd.run': mock}):
         self.assertEqual(devmap.multipath_list(), ['A'])
Esempio n. 2
0
 def test_multipath_list(self):
     '''
     Test for Device-Mapper Multipath list
     '''
     mock = MagicMock(return_value='A')
     with patch.dict(devmap.__salt__, {'cmd.run': mock}):
         self.assertEqual(devmap.multipath_list(), ['A'])
Esempio n. 3
0
 def test_multipath_list(self):
     """
     Test for Device-Mapper Multipath list
     """
     mock = MagicMock(return_value="A")
     with patch.dict(devmap.__salt__, {"cmd.run": mock}):
         self.assertEqual(devmap.multipath_list(), ["A"])