from goodnews.feeds import _img_from_html, parse_feed def test_img_from_html_finds_first_src(): assert _img_from_html('
hi
') == "https://x.com/a.jpg"
assert _img_from_html("no images here") is None
assert _img_from_html(None) is None
RSS = b"""
more]]>