示例#1
0
文件: test_style.py 项目: boto/bcdoc
 def test_codeblock(self):
     style = ReSTStyle(ReSTDocument())
     style.codeblock('foobar')
     self.assertEqual(style.doc.getvalue(),
                      six.b('::\n\n  foobar\n\n\n'))
示例#2
0
 def test_codeblock(self):
     style = ReSTStyle(ReSTDocument())
     style.codeblock('foobar')
     self.assertEqual(style.doc.getvalue(), six.b('::\n\n  foobar\n\n\n'))