

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

dataset/ETHPy150Open ueg1990/imgur-cli/tests/test_cli.py TestImgurCli.test_album_update/VarMisuse@66/101 `self`->`argv`