

def test_account_change_settings(self):
    argv = ['account', 'change-settings', 'ue90', '--username', 'ueg1990']
    self._client.return_value.allowed_account_fields = {'bio', 'public_images', 'messaging_enabled', 'album_privacy', 'accepted_gallery_terms', 'username'}
    _cli = self.cli(argv)
    parser_args = _cli.parser.parse_args(argv)
    self.assertParser(_cli, parser_args, argv)
    self.assertTrue(_cli.client.change_account_settings.called)
    expected_args = ('ue90', {
        'username': 'ueg1990',
    })
    _cli.client.change_account_settings.assert_called_with(*expected_args)

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