

def test_album_create(self):
    argv = ['album', 'create', '--title', 'test']
    _cli._client.return_value.allowed_album_fields = {'ids', 'title', 'description', 'privacy', 'layout', 'cover'}
    _cli = self.cli(argv)
    parser_args = _cli.parser.parse_args(argv)
    self.assertParser(_cli, parser_args, argv)
    self.assertTrue(_cli.client.create_album.called)
    _cli.client.create_album.assert_called_with({
        'title': 'test',
    })

dataset/ETHPy150Open ueg1990/imgur-cli/tests/test_cli.py TestImgurCli.test_album_create/VarMisuse@22/33 `self`->`_cli`