コード例 #1
0
    def test_get_all_settings_local(self):
        ret = win_lgpo_netsh.get_all_settings(profile="domain", store="local")

        self.assertIn("Inbound", ret)
        self.assertIn("Outbound", ret)
        self.assertIn("FileName", ret)
        self.assertIn("LogAllowedConnections", ret)
        self.assertIn("LogDroppedConnections", ret)
        self.assertIn("MaxFileSize", ret)
        self.assertIn("InboundUserNotification", ret)
        self.assertIn("LocalConSecRules", ret)
        self.assertIn("LocalFirewallRules", ret)
        self.assertIn("RemoteManagement", ret)
        self.assertIn("UnicastResponseToMulticast", ret)
        self.assertIn("State", ret)
コード例 #2
0
    def test_get_all_settings_lgpo(self):
        ret = win_lgpo_netsh.get_all_settings(profile='domain', store='local')

        self.assertIn('Inbound', ret)
        self.assertIn('Outbound', ret)
        self.assertIn('FileName', ret)
        self.assertIn('LogAllowedConnections', ret)
        self.assertIn('LogDroppedConnections', ret)
        self.assertIn('MaxFileSize', ret)
        self.assertIn('InboundUserNotification', ret)
        self.assertIn('LocalConSecRules', ret)
        self.assertIn('LocalFirewallRules', ret)
        self.assertIn('RemoteManagement', ret)
        self.assertIn('UnicastResponseToMulticast', ret)
        self.assertIn('State', ret)