def test_multiple_comments(self):
buf = StringIO(
'<html><translate '
'translate-comment="What a beautiful world"'
'translate-comment="Another comment"'
'>hello world!</translate></html>')
messages = list(extract_angular(buf, [], [], {}))
self.assertEqual(
[
(1, 'gettext', 'hello world!',
[
'What a beautiful world',
'Another comment'
])
],
messages)
评论列表
文章目录