Exemple #1
0
 def test_env(self, mock_stdout):
     command_parser = cli.CommandParser(['env'])
     command_parser.execute()
     self.assertTrue(mock_stdout.getvalue())
Exemple #2
0
 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')
Exemple #3
0
 def test_version(self, mock_stdout):
     command_parser = cli.CommandParser(['version'])
     command_parser.execute()
     self.assertEqual(mock_stdout.getvalue(), cli.GIT_XL_VERSION + '\n')
Exemple #4
0
 def test_generic_help(self, mock_stdout):
     command_parser = cli.CommandParser(['help'])
     command_parser.execute()
     self.assertEqual(mock_stdout.getvalue(), cli.HELP_GENERIC + '\n')