def testSQLiteHelp(self):
"""testing the main of the sqlite"""
runner = CliRunner()
result = runner.invoke(main.entry_point, ['sqlite', '--help'])
expected_output = ('Usage: entry_point sqlite [OPTIONS]\n'
'\n'
'Options:\n'
' --path TEXT The path to plaso\n'
' --name TEXT The plugin name\n'
' --testfile TEXT The testfile path\n'
' --sql / --no-sql The output example flag for the '
'SQL Query for the plugin.\n'
' --help Show this message and exit.\n')
self.assertEqual(expected_output, str(result.output))
self.assertEqual(0, result.exit_code)
评论列表
文章目录