

@mock.patch('imgur_cli.cli_api.format_comment_tree')
def test_gallery_comments(self, mock_format_comment_tree):
    argv = ['gallery', 'comments', '123']
    _cli = self.cli(argv)
    parser_args = _cli.parser.parse_args(argv)
    self.assertParser(_cli, parser_args, argv)
    self.assertTrue(_cli.client.gallery_item_comments.called)
    self.assertEqual(parser_args.sort, 'best')

dataset/ETHPy150Open ueg1990/imgur-cli/tests/test_cli.py TestImgurCli.test_gallery_comments/original