summaryrefslogtreecommitdiff
path: root/tests/test_argparse.py
blob: 0f2b08a55c66d10014f12e814e056ba6f788590f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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))