Esempio n. 1
0
 def test_available(self):
     '''
     Tests return a list of all available kernel modules
     '''
     with patch('salt.modules.kmod.available',
                MagicMock(return_value=['kvm'])):
         self.assertEqual(['kvm'], kmod.available())
Esempio n. 2
0
 def test_available(self):
     '''
     Tests return a list of all available kernel modules
     '''
     self.assertEqual(['kvm'], kmod.available())
Esempio n. 3
0
 def test_available(self):
     """
     Tests return a list of all available kernel modules
     """
     with patch("salt.modules.kmod.available", MagicMock(return_value=["kvm"])):
         self.assertEqual(["kvm"], kmod.available())
Esempio n. 4
0
 def test_available(self):
     '''
     Tests return a list of all available kernel modules
     '''
     self.assertEqual(['kvm'], kmod.available())
Esempio n. 5
0
 def test_available(self):
     """
     Tests return a list of all available kernel modules
     """
     self.assertEqual(["kvm"], kmod.available())