def test_passing_content_to_publish_should_call_pelican():
    draftin_a_flask.subprocess = MagicMock()
    expected = [call.check_output([draftin_a_flask.PELICAN,
                                   draftin_a_flask.CONTENT, 
                                   '-o', 
                                   draftin_a_flask.OUTPUT,
                                   '-s',
                                   draftin_a_flask.PELICANCONF]),
                ]

    draftin_a_flask.publish('a name', 'This is some content')

    assert draftin_a_flask.subprocess.mock_calls == expected
dataset/ETHPy150Open waynew/draftin-a-flask/tests/test_draftin_a_flask.py/test_passing_content_to_publish_should_call_pelican/original