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)
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)
def setUp(self): self.cli = CLI()