diff --git a/test/streamparse/cli/test_jar.py b/test/streamparse/cli/test_jar.py new file mode 100644 index 00000000..6ce5a93e --- /dev/null +++ b/test/streamparse/cli/test_jar.py @@ -0,0 +1,23 @@ +from __future__ import absolute_import, unicode_literals + +import argparse +import unittest + +from streamparse.cli.jar import subparser_hook + +from nose.tools import ok_ + + +class JARTestCase(unittest.TestCase): + + def test_subparser_hook(self): + parser = argparse.ArgumentParser() + subparsers = parser.add_subparsers() + subparser_hook(subparsers) + + subcommands = parser._optionals._actions[1].choices.keys() + ok_('jar' in subcommands) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/streamparse/cli/test_remove_logs.py b/test/streamparse/cli/test_remove_logs.py new file mode 100644 index 00000000..8120e9d2 --- /dev/null +++ b/test/streamparse/cli/test_remove_logs.py @@ -0,0 +1,23 @@ +from __future__ import absolute_import, unicode_literals + +import argparse +import unittest + +from streamparse.cli.remove_logs import subparser_hook + +from nose.tools import ok_ + + +class RemoveLogsTestCase(unittest.TestCase): + + def test_subparser_hook(self): + parser = argparse.ArgumentParser() + subparsers = parser.add_subparsers() + subparser_hook(subparsers) + + subcommands = parser._optionals._actions[1].choices.keys() + ok_('remove_logs' in subcommands) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/streamparse/cli/test_update_virtualenv.py b/test/streamparse/cli/test_update_virtualenv.py new file mode 100644 index 00000000..5a33cf68 --- /dev/null +++ b/test/streamparse/cli/test_update_virtualenv.py @@ -0,0 +1,23 @@ +from __future__ import absolute_import, unicode_literals + +import argparse +import unittest + +from streamparse.cli.update_virtualenv import subparser_hook + +from nose.tools import ok_ + + +class UpdateVirtualenvTestCase(unittest.TestCase): + + def test_subparser_hook(self): + parser = argparse.ArgumentParser() + subparsers = parser.add_subparsers() + subparser_hook(subparsers) + + subcommands = parser._optionals._actions[1].choices.keys() + ok_('update_virtualenv' in subcommands) + + +if __name__ == '__main__': + unittest.main()