def test_should_call_prompt_with_process_json(mocker):
 mock_prompt = mocker.patch(u'cookiecutter.prompt.click.prompt', autospec=True)
 read_user_dict(u'name', {u'project_slug': u'pytest-plugin'})
 assert (mock_prompt.call_args == mocker.call(u'name', type=click.STRING, default=u'default', value_proc=process_json))

def test_should_call_prompt_with_process_json ( mocker ) : mock_prompt = mocker . patch ( u'cookiecutter.prompt.click.prompt' , autospec = True ) read_user_dict ( u'name' , { u'project_slug' : u'pytest-plugin' } ) assert ( mock_prompt . call_args == mocker . call ( u'name' , type = click . STRING , default = u'default' , value_proc = process_json ) )
test to make sure that process_jon is actually being used to generate a processer for the user input .