diff options
author | kali <kali@leap.se> | 2012-08-08 20:06:14 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2012-08-08 20:06:14 +0900 |
commit | b1e025a343d0c6019127871acb47d7b295d342e9 (patch) | |
tree | b5d175e1bf8b625433ba8d8ec83cb45b0ccc8618 /src/leap/util/test_leap_argparse.py | |
parent | c1fa99be4dc4174a34620324ec5056b793196b53 (diff) | |
parent | 60a51aed9c1ee9249a79b3d996ae86d93a9532de (diff) |
Merge branch 'tests-cleanup' into develop
moved out old broken stuff;
copied a run_scripts entry point for tests;
created a bunch of (mostly stubs) simple tests on secondary
functions.
Diffstat (limited to 'src/leap/util/test_leap_argparse.py')
-rw-r--r-- | src/leap/util/test_leap_argparse.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/leap/util/test_leap_argparse.py b/src/leap/util/test_leap_argparse.py new file mode 100644 index 00000000..1442e827 --- /dev/null +++ b/src/leap/util/test_leap_argparse.py @@ -0,0 +1,27 @@ +from argparse import Namespace +import unittest + +from leap.util import leap_argparse + + +class LeapArgParseTest(unittest.TestCase): + """ + Test argparse options for eip client + """ + + def setUp(self): + """ + get the parser + """ + self.parser = leap_argparse.build_parser() + + def test_debug_mode(self): + """ + test debug mode option + """ + opts = self.parser.parse_args( + ['--debug']) + self.assertEqual( + opts, + Namespace(config_file=None, + debug=True)) |