cli_test.py 417 B

123456789101112
  1. from __future__ import unicode_literals
  2. from __future__ import absolute_import
  3. from . import unittest
  4. from fig.cli.main import TopLevelCommand
  5. class CLITestCase(unittest.TestCase):
  6. def setUp(self):
  7. self.command = TopLevelCommand()
  8. self.command.base_dir = 'tests/fixtures/simple-figfile'
  9. def test_help(self):
  10. self.assertRaises(SystemExit, lambda: self.command.dispatch(['-h'], None))