def test_env(self, mock_stdout): command_parser = cli.CommandParser(['env']) command_parser.execute() self.assertTrue(mock_stdout.getvalue())
def test_help_uninstall(self, mock_stdout): command_parser = cli.CommandParser(['help', 'uninstall']) command_parser.execute() self.assertEqual(mock_stdout.getvalue(), cli.HELP_UNINSTALL + '\n')
def test_version(self, mock_stdout): command_parser = cli.CommandParser(['version']) command_parser.execute() self.assertEqual(mock_stdout.getvalue(), cli.GIT_XL_VERSION + '\n')
def test_generic_help(self, mock_stdout): command_parser = cli.CommandParser(['help']) command_parser.execute() self.assertEqual(mock_stdout.getvalue(), cli.HELP_GENERIC + '\n')