Exemplo n.º 1
0
 def test_env(self, mock_stdout):
     command_parser = cli.CommandParser(['env'])
     command_parser.execute()
     self.assertTrue(mock_stdout.getvalue())
Exemplo n.º 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')
Exemplo n.º 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')
Exemplo n.º 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')