def test_extract_multiple_units_youtube_link(): site = 'https://courses.edx.org' with open("test/html/multiple_units_youtube_link.html", "r") as f: units = CurrentEdXPageExtractor().extract_units_from_html(f.read(), site) assert 'https://www.youtube.com/watch?v=5OXQypOAbdI' in units[0].resources_urls