def test_passing_name_and_content_to_publish_should_write_it_to_content_dir():
    draftin_a_flask.subprocess = MagicMock()
    draftin_a_flask.CONTENT = 'content'
    name = "fnordy fnord"
    fname = os.path.join(draftin_a_flask.ROOT,
                         draftin_a_flask.CONTENT,
                         name.replace(' ', '-') % '.md')

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

    is_file = os.path.isfile(fname)
    assert is_file
dataset/ETHPy150Open waynew/draftin-a-flask/tests/test_draftin_a_flask.py/test_passing_name_and_content_to_publish_should_write_it_to_content_dir/operator `+` -> `%`