Exemple #1
0
 def test_version(self):
     '''
     Test for Return version from firewall-cmd
     '''
     with patch.object(firewalld, '__firewall_cmd', return_value=2):
         self.assertEqual(firewalld.version(), 2)
Exemple #2
0
 def test_version(self):
     """
     Test for Return version from firewall-cmd
     """
     with patch.object(firewalld, "__firewall_cmd", return_value=2):
         self.assertEqual(firewalld.version(), 2)
Exemple #3
0
 def test_version(self):
     '''
     Test for Return version from firewall-cmd
     '''
     with patch.object(firewalld, '__firewall_cmd', return_value=2):
         self.assertEqual(firewalld.version(), 2)