def test_main(self):
self.fake_popen.return_value.stdout = BytesIO(get_base64_image())
args = ['snapshot', HTML_FILE]
with patch.object(sys, 'argv', args):
main()
assert(filecmp.cmp('output.png', get_fixture('sample.png')))
评论列表
文章目录