summaryrefslogtreecommitdiff
path: root/tests/test_argparse.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-07-22 21:10:15 -0700
committerkali <kali@leap.se>2012-07-22 21:10:15 -0700
commitc46d8da153ac658c8bd145376e22b1218db1090a (patch)
tree0943a4a866d9f3b1bc590c1c23f810ca13635f9e /tests/test_argparse.py
initial import
Diffstat (limited to 'tests/test_argparse.py')
-rw-r--r--tests/test_argparse.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/test_argparse.py b/tests/test_argparse.py
new file mode 100644
index 00000000..0f2b08a5
--- /dev/null
+++ b/tests/test_argparse.py
@@ -0,0 +1,26 @@
+from argparse import Namespace
+import unittest
+
+from eip_client.utils import eip_argparse
+
+
+class EIPArgParseTest(unittest.TestCase):
+ """
+ Test argparse options for eip client
+ """
+
+ def setUp(self):
+ """
+ get the parser
+ """
+ self.parser = eip_argparse.build_parser()
+
+ def test_debug_mode(self):
+ """
+ test debug mode option
+ """
+ opts = self.parser.parse_args(
+ ['--debug'])
+ self.assertEqual(opts,
+ Namespace(config=None,
+ debug=True))