Add new RHEL7 logvol objects to master
[pykickstart.git] / tests / commands / selinux.py
blobfeb4c0c8f19affe8683b0640cbc85028dfdb6054
1 import unittest
2 from tests.baseclass import *
4 from pykickstart.errors import *
5 from pykickstart.commands.selinux import *
7 class FC3_TestCase(CommandTest):
8 command = "selinux"
10 def runTest(self):
11 # pass
12 self.assert_parse("selinux")
13 self.assert_parse("selinux --permissive", "selinux --permissive\n")
14 self.assert_parse("selinux --enforcing", "selinux --enforcing\n")
15 self.assert_parse("selinux --disabled", "selinux --disabled\n")
17 # fail
18 self.assert_parse_error("selinux --cheese")
19 self.assert_parse_error("selinux --crackers=CRUNCHY")
21 if __name__ == "__main__":
22 unittest.main()