예제 #1
0
def test_format_abnormal_title():
    path = 'test/posts/title\ 2013-05-28.md'
    title = site.format_title(path)
    expected = r'title\ 2013-05-28'

    assert title == expected, 'site.format_title did did not produce expected result, gave: %s expected: %s got: %s' % (
        path, expected, title)
예제 #2
0
def test_format_abnormal_title():
    path = 'test/posts/title\ 2013-05-28.md'
    title = site.format_title(path)
    expected = r'title\ 2013-05-28'

    assert title == expected, 'site.format_title did did not produce expected result, gave: %s expected: %s got: %s' % (path, expected, title)
예제 #3
0
def test_format_title():
    path = 'test/posts/post1.md'
    title = site.format_title(path)

    assert title == 'post1', 'site.format_title did did not produce expected result, gave: %s got: %s' % (path, title)
예제 #4
0
def test_format_title():
    path = 'test/posts/post1.md'
    title = site.format_title(path)

    assert title == 'post1', 'site.format_title did did not produce expected result, gave: %s got: %s' % (
        path, title)