def test_while_unknown_does(self):
MULTILINE_BODY = [
{'While': '$.deploy()',
'Does': ['$.a()', '$.b()']}
]
self.g = self._checker.codeblock(MULTILINE_BODY)
p1 = next(self.g)
p2 = next(self.g)
six.assertCountEqual(self, [
'Unknown keyword "Does" in "While"',
'Missing keyword "Do" for "While" code structure'],
[p1.message, p2.message])
test_code_structure_checker.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录