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)
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)
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)
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)