Changeset View
Changeset View
Standalone View
Standalone View
tests/scap/test_checks.py
from __future__ import absolute_import | from __future__ import absolute_import | ||||
import logging | import logging | ||||
import select | import select | ||||
from StringIO import StringIO | |||||
import unittest | import unittest | ||||
import pytest | import pytest | ||||
from scap import checks | from scap import checks | ||||
try: | |||||
from StringIO import StringIO | |||||
except ImportError: | |||||
from io import StringIO | |||||
def test_load_valid_config(): | def test_load_valid_config(): | ||||
chks = checks.load({ | chks = checks.load({ | ||||
'checks': { | 'checks': { | ||||
'foo': { | 'foo': { | ||||
'type': 'command', | 'type': 'command', | ||||
'command': '/bin/true', | 'command': '/bin/true', | ||||
'stage': 'promote', | 'stage': 'promote', | ||||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 3.0 (CC-BY-SA) unless otherwise noted; code licensed under GNU General Public License (GPL) or other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL