[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] Create lang command test
- From: Adam Williamson <adamwill shaw ca>
- To: kickstart-list redhat com
- Cc:
- Subject: [PATCH] Create lang command test
- Date: Wed, 28 Jan 2009 13:19:08 -0800
---
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]