Beispiel #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())
Beispiel #2
0
 def test_available(self):
     '''
     Tests return a list of all available kernel modules
     '''
     self.assertEqual(['kvm'], kmod.available())
Beispiel #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())
Beispiel #4
0
 def test_available(self):
     '''
     Tests return a list of all available kernel modules
     '''
     self.assertEqual(['kvm'], kmod.available())
Beispiel #5
0
 def test_available(self):
     """
     Tests return a list of all available kernel modules
     """
     self.assertEqual(["kvm"], kmod.available())