コード例 #1
0
 def test_list_services(self):
     '''
     Test for List services added for zone as a space separated list.
     '''
     with patch.object(firewalld, '__firewall_cmd', return_value=''):
         self.assertEqual(firewalld.list_services(), [])
コード例 #2
0
 def test_list_services(self):
     """
     Test for List services added for zone as a space separated list.
     """
     with patch.object(firewalld, "__firewall_cmd", return_value=""):
         self.assertEqual(firewalld.list_services(), [])
コード例 #3
0
ファイル: firewalld_test.py プロジェクト: DaveQB/salt
 def test_list_services(self):
     '''
     Test for List services added for zone as a space separated list.
     '''
     with patch.object(firewalld, '__firewall_cmd', return_value=''):
         self.assertEqual(firewalld.list_services(), [])