def test_default_command_line_args(self, *unused):
     sys.argv = ['./check_growth.py', '-c', './check_growth.json']
     parsed_cmdline = check_growth.parse_command_line()
     self.assertEqual(parsed_cmdline, {'std_err': False,
                                       'config_file': './check_growth.json',
                                       'verbose': False,
                                       'clean_histdata': False,
                                       })
 def test_config_file_missing_from_commandline(self, SysExitMock):
     sys.argv = ['./check_growth.py', ]
     # Suppres warnings from argparse
     with mock.patch('sys.stderr'):
         check_growth.parse_command_line()
     SysExitMock.assert_called_once_with(2)