def test_make_md():
    """
    Verifies that 1) an md file is created with the correct format and
     2) that all the options are  correctly set
    """
    if os.path.exists(TEST_DIR + 'content/test.md'):
        os.remove(TEST_DIR + 'content/test.md')
    make_md(TEST_DIR, "test", "blah", 'blah')
    assert os.path.exists(TEST_DIR + 'content/test.md')
def test_markdown_safe():
    """
    Tests that we cannot write to a directory twice
    """
    make_md(TEST_DIR, "test", "blah", 'blah')
    make_md(TEST_DIR, "test", "blah", 'blah')