Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea32721
commit de1a52b
Showing
7 changed files
with
96 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# -*- coding: UTF-8 -*- | ||
# (c)2013 Mik Kocikowski, MIT License (http://opensource.org/licenses/MIT) | ||
# https://github.com/mkocikowski/esbench | ||
|
||
import datetime | ||
import os.path | ||
import unittest | ||
import json | ||
|
||
import esbench.client | ||
|
||
class ClientTest(unittest.TestCase): | ||
|
||
def test_args(self): | ||
parser = esbench.client.args_parser() | ||
self.assertRaises(SystemExit, parser.parse_args, "".split()) | ||
args = parser.parse_args("run".split()) | ||
self.assertEqual(args.__dict__, {'no_optimize_calls': False, 'verbose': False, 'segments': None, 'repetitions': 1000, 'n': 100, 'command': 'run', 'observations': 10, 'data': None, 'append': False, 'config_file_path': './config.json'}) | ||
|
||
|
||
|
||
if __name__ == "__main__": | ||
unittest.main() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters