Skip to content
This repository was archived by the owner on Jan 22, 2020. It is now read-only.

Commit 0308651

Browse files
committed
test: added HugoDoc writeline checks
1 parent f0e2dd6 commit 0308651

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_maker.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,14 @@ def test_meta_data(self):
2626
doc.meta['foo'] = 'bar'
2727
header_str = '+++\ntitle = "PageTwo"\nfoo = "bar"\n'
2828
self.assertIn(header_str, doc.header())
29+
30+
def test_writeline(self):
31+
"""
32+
Check that writeline adds
33+
content to buffer.
34+
"""
35+
doc = HugoDoc(title="PageThree")
36+
line = u'All original junglist massive'
37+
doc.writeline(line)
38+
self.assertIn(line, doc.getcontents())
39+

0 commit comments

Comments
 (0)