from time import struct_time


simple_mock = bytes(
    """<?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet title="XSL_formatting" type="text/xsl" href="/shared/bsp/xsl/rss/nolsol.xsl"?>
    <rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/">
        <channel>
            <title><![CDATA[BBC News - Home]]></title>
            <description><![CDATA[BBC News - Home]]></description>
            <link>https://www.bbc.co.uk/news/</link>
            <image>
                <url>https://news.bbcimg.co.uk/nol/shared/img/bbc_news_120x60.gif</url>
                <title>BBC News - Home</title>
                <link>https://www.bbc.co.uk/news/</link>
            </image>
            <generator>RSS for Node</generator>
            <lastBuildDate>Sun, 12 Jul 2020 17:21:20 GMT</lastBuildDate>
            <copyright><![CDATA[Copyright: (C) British Broadcasting Corporation, see http://news.bbc.co.uk/2/hi/help/rss/4498287.stm for terms and conditions of reuse.]]></copyright>
            <language><![CDATA[en-gb]]></language>
            <ttl>15</ttl>
            <item>
                <title><![CDATA[Coronavirus: I trust people's sense on face masks - Gove]]></title>
                <description><![CDATA[Minister Michael Gove says he does not think face coverings should be mandatory in shops in England.]]></description>
                <link>https://www.bbc.co.uk/news/uk-53381000</link>
                <guid isPermaLink="true">https://www.bbc.co.uk/news/uk-53381000</guid>
                <pubDate>Sun, 12 Jul 2020 16:15:03 GMT</pubDate>
            </item>
            <item>
                <title><![CDATA[Farm outbreak leads 200 to self isolate ]]></title>
                <description><![CDATA[Up to 200 vegetable pickers and packers will remain on the farm in Herefordshire while isolating.]]></description>
                <link>https://www.bbc.co.uk/news/uk-england-hereford-worcester-53381802</link>
                <guid isPermaLink="true">https://www.bbc.co.uk/news/uk-england-hereford-worcester-53381802</guid>
                <pubDate>Sun, 12 Jul 2020 17:19:31 GMT</pubDate>
            </item>
            <item>
                <title><![CDATA[English Channel search operation after migrant crossings]]></title>
                <description><![CDATA[Several boats are spotted as the home secretary visits France for talks on tackling people smuggling.]]></description>
                <link>https://www.bbc.co.uk/news/uk-53382563</link>
                <guid isPermaLink="true">https://www.bbc.co.uk/news/uk-53382563</guid>
                <pubDate>Sun, 12 Jul 2020 15:47:17 GMT</pubDate>
            </item>
         </channel>
    </rss>""",
    "utf-8",
)


simple_mock_parsed = {
    "bozo": 0,
    "encoding": "utf-8",
    "entries": [
        {
            "guidislink": False,
            "id": "https://www.bbc.co.uk/news/uk-53381000",
            "link": "https://www.bbc.co.uk/news/uk-53381000",
            "links": [
                {
                    "href": "https://www.bbc.co.uk/news/uk-53381000",
                    "rel": "alternate",
                    "type": "text/html",
                }
            ],
            "published": "Sun, 12 Jul 2020 16:15:03 GMT",
            "published_parsed": struct_time((2020, 7, 12, 16, 15, 3, 6, 194, 0)),
            "summary": "Minister Michael Gove says he does not think face "
            "coverings should be mandatory in shops in England.",
            "summary_detail": {
                "base": "",
                "language": None,
                "type": "text/html",
                "value": "Minister Michael Gove says he does "
                "not think face coverings should be "
                "mandatory in shops in England.",
            },
            "title": "Coronavirus: I trust people's sense on face masks - Gove",
            "title_detail": {
                "base": "",
                "language": None,
                "type": "text/plain",
                "value": "Coronavirus: I trust people's sense on face masks - Gove",
            },
        },
        {
            "guidislink": False,
            "id": "https://www.bbc.co.uk/news/uk-england-hereford-worcester-53381802",
            "link": "https://www.bbc.co.uk/news/uk-england-hereford-worcester-53381802",
            "links": [
                {
                    "href": "https://www.bbc.co.uk/news/uk-england-hereford-worcester-53381802",
                    "rel": "alternate",
                    "type": "text/html",
                }
            ],
            "published": "Sun, 12 Jul 2020 17:19:31 GMT",
            "published_parsed": struct_time((2020, 7, 12, 17, 19, 31, 6, 194, 0)),
            "summary": "Up to 200 vegetable pickers and packers will remain "
            "on the farm in Herefordshire while isolating.",
            "summary_detail": {
                "base": "",
                "language": None,
                "type": "text/html",
                "value": "Up to 200 vegetable pickers and "
                "packers will remain on the farm in "
                "Herefordshire while isolating.",
            },
            "title": "Farm outbreak leads 200 to self isolate",
            "title_detail": {
                "base": "",
                "language": None,
                "type": "text/plain",
                "value": "Farm outbreak leads 200 to self isolate",
            },
        },
        {
            "guidislink": False,
            "id": "https://www.bbc.co.uk/news/uk-53382563",
            "link": "https://www.bbc.co.uk/news/uk-53382563",
            "links": [
                {
                    "href": "https://www.bbc.co.uk/news/uk-53382563",
                    "rel": "alternate",
                    "type": "text/html",
                }
            ],
            "published": "Sun, 12 Jul 2020 15:47:17 GMT",
            "published_parsed": struct_time((2020, 7, 12, 15, 47, 17, 6, 194, 0)),
            "summary": "Several boats are spotted as the home secretary "
            "visits France for talks on tackling people "
            "smuggling.",
            "summary_detail": {
                "base": "",
                "language": None,
                "type": "text/html",
                "value": "Several boats are spotted as the "
                "home secretary visits France for "
                "talks on tackling people "
                "smuggling.",
            },
            "title": "English Channel search operation after migrant crossings",
            "title_detail": {
                "base": "",
                "language": None,
                "type": "text/plain",
                "value": "English Channel search operation after migrant crossings",
            },
        },
    ],
    "feed": {
        "generator": "RSS for Node",
        "generator_detail": {"name": "RSS for Node"},
        "image": {
            "href": "https://news.bbcimg.co.uk/nol/shared/img/bbc_news_120x60.gif",
            "link": "https://www.bbc.co.uk/news/",
            "links": [
                {
                    "href": "https://www.bbc.co.uk/news/",
                    "rel": "alternate",
                    "type": "text/html",
                }
            ],
            "title": "BBC News - Home",
            "title_detail": {
                "base": "",
                "language": None,
                "type": "text/plain",
                "value": "BBC News - Home",
            },
        },
        "language": "en-gb",
        "link": "https://www.bbc.co.uk/news/",
        "links": [
            {
                "href": "https://www.bbc.co.uk/news/",
                "rel": "alternate",
                "type": "text/html",
            }
        ],
        "rights": "Copyright: (C) British Broadcasting Corporation, see "
        "http://news.bbc.co.uk/2/hi/help/rss/4498287.stm for terms "
        "and conditions of reuse.",
        "rights_detail": {
            "base": "",
            "language": None,
            "type": "text/plain",
            "value": "Copyright: (C) British Broadcasting "
            "Corporation, see "
            "http://news.bbc.co.uk/2/hi/help/rss/4498287.stm "
            "for terms and conditions of reuse.",
        },
        "subtitle": "BBC News - Home",
        "subtitle_detail": {
            "base": "",
            "language": None,
            "type": "text/html",
            "value": "BBC News - Home",
        },
        "title": "BBC News - Home",
        "title_detail": {
            "base": "",
            "language": None,
            "type": "text/plain",
            "value": "BBC News - Home",
        },
        "ttl": "15",
        "updated": "Sun, 12 Jul 2020 17:21:20 GMT",
        "updated_parsed": struct_time((2020, 7, 12, 17, 21, 20, 6, 194, 0)),
    },
    "headers": {},
    "namespaces": {
        "": "http://www.w3.org/2005/Atom",
        "content": "http://purl.org/rss/1.0/modules/content/",
        "dc": "http://purl.org/dc/elements/1.1/",
        "media": "http://search.yahoo.com/mrss/",
    },
    "version": "rss20",
}
