[PATCH] Create lang command test

Adam Williamson adamwill at shaw.ca
Wed Jan 28 21:19:08 UTC 2009


---
 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




More information about the Kickstart-list mailing list