Example #1
0
class CLITestCase(unittest.TestCase):

    def setUp(self):
        self.cli = CLI()

    def test_available_subcomands(self):
        subcommands = sorted(['start', 'installreveal', 'mkpresentation'])

        self.assertListEqual(subcommands, sorted(self.cli.subcommands))

    def test_parse_subcommand(self):
        self.cli.parse_known_args(['start', ])

        self.assertEqual(self.cli.subcommand, 'start')

    def test_load_subcommand(self):
        subcommand = load_subcomand('start')

        self.assertIsInstance(subcommand, start.Start)
Example #2
0
class CLITestCase(unittest.TestCase):
    def setUp(self):
        self.cli = CLI()

    def test_available_subcomands(self):
        subcommands = sorted(['start', 'installreveal', 'mkpresentation'])

        self.assertListEqual(subcommands, sorted(self.cli.subcommands))

    def test_parse_subcommand(self):
        self.cli.parse_known_args([
            'start',
        ])

        self.assertEqual(self.cli.subcommand, 'start')

    def test_load_subcommand(self):
        subcommand = load_subcomand('start')

        self.assertIsInstance(subcommand, start.Start)
Example #3
0
 def setUp(self):
     self.cli = CLI()
Example #4
0
 def setUp(self):
     self.cli = CLI()