def test_parse_Mp3skull(): ans = Main.WebParser.LinksGrabber.parse_Mp3skull('Harlem Shake') for i in range(3): x = ans.next().url assert x.startswith('http://') urllib2.urlopen(utils.url_fix(x))
def test_parse_soundcloud_api2(): ans = Main.WebParser.LinksGrabber.parse_soundcloud_api2(u'קרן פלס') for i in range(3): x = ans.next().url assert x.startswith('http://') urllib2.urlopen(utils.url_fix(x))
def test_parse_dilandau(): ans = Main.WebParser.LinksGrabber.parse_dilandau('Flo Rida - Whistle') for i in range(3): x = ans.next().url assert x.startswith('http://') urllib2.urlopen(utils.url_fix(x))
def test_parse_MusicAddict(): ans = Main.WebParser.LinksGrabber.parse_mp3soup('Never Gonna Give You Up') for i in range(3): x = ans.next().url assert x.startswith('http://') urllib2.urlopen(utils.url_fix(x))
def test_parse_mp3soup(): ans = Main.WebParser.LinksGrabber.parse_mp3soup('Flo Rida - Whistle') for i in range(3): x = ans.next().url assert x.startswith('http://') urllib2.urlopen(utils.url_fix(x))
def test_parse_bandcamp(): ans = Main.WebParser.LinksGrabber.parse_bandcamp(u'יוני בלוך') ans = list(ans) for i in range(3): x = ans[i].url assert x.startswith('http://') urllib2.urlopen(utils.url_fix(x)) assert u'יוני בלוך - הרגלים רעים' in [x.title for x in ans] assert u'יוני בלוך - אחריות' in [x.title for x in ans]