def METHOD_NAME(self):
    self.maxDiff = None
    for test in [
        # full http:// url as media segment in playlist
        {
            "playlist": M3U_EXAMPLE,
            "expected": [
                {
                    "PROGRAM-ID": "1",
                    "BANDWIDTH": "232370",
                    "TAG": "EXT-X-STREAM-INF",
                    "URI": "something1/else.m3u8",
                    "CODECS": "mp4a.40.2, avc1.4d4015",
                },
                {
                    "PROGRAM-ID": "1",
                    "BANDWIDTH": "649879",
                    "TAG": "EXT-X-STREAM-INF",
                    "URI": "something2/else.m3u8",
                    "CODECS": "mp4a.40.2, avc1.4d401e",
                },
                {
                    "PROGRAM-ID": "1",
                    "BANDWIDTH": "991714",
                    "TAG": "EXT-X-STREAM-INF",
                    "URI": "something3/else.m3u8",
                    "CODECS": "mp4a.40.2, avc1.4d401e",
                },
                {
                    "PROGRAM-ID": "1",
                    "BANDWIDTH": "1927833",
                    "TAG": "EXT-X-STREAM-INF",
                    "URI": "something4/else.m3u8",
                    "CODECS": "mp4a.40.2, avc1.4d401f",
                },
                {"PROGRAM-ID": "1", "BANDWIDTH": "41457", "TAG": "EXT-X-STREAM-INF", "URI": "something0/else.m3u8", "CODECS": "mp4a.40.2"},
            ],
        },
        # More examples can be found on "https://developer.apple.com/streaming/examples/"
    ]:
        assert M3U8(test["playlist"]).master_playlist == test["expected"]