[PATCH] Create lang command test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 tests/commands/lang.py |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)
 create mode 100644 tests/commands/lang.py

diff --git a/tests/commands/lang.py b/tests/commands/lang.py
new file mode 100644
index 0000000..8e68749
--- /dev/null
+++ b/tests/commands/lang.py
@@ -0,0 +1,21 @@
+import unittest, shlex
+import warnings
+from tests.baseclass import *
+
+from pykickstart.errors import *
+from pykickstart.commands.authconfig import *
+#from pykickstart.base import *
+#from pykickstart.options import *
+
+class FC3_TestCase(CommandTest):
+    def runTest(self):
+        # pass
+        self.assert_parse("lang en_US", "lang en_US\n")
+
+        # fail
+        # Fail if less than or more than one argument is specified
+        self.assert_parse_error("lang", KickstartValueError)
+        self.assert_parse_error("lang en_US en_CA", KickstartValueError)
+
+if __name__ == "__main__":
+    unittest.main()
-- 
1.6.0.6

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list

[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux