Skip to content
This repository has been archived by the owner on Mar 5, 2019. It is now read-only.

Commit

Permalink
the rate-limit is just too hard right now xD
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Berger committed Dec 20, 2017
1 parent bf046d6 commit 09ca666
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions tests/extractors/test_animelyrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
class TestAnimeLyrics:
def test_can_handle(self):
assert Animelyrics.can_handle(UrlData("http://www.animelyrics.com/anime/swimminganime/splashfree.htm"))

def test_translated_extraction(self):
lyrics = Animelyrics.extract_lyrics(UrlData("http://www.animelyrics.com/anime/swimminganime/splashfree.htm"))

lyrics_hash = hashlib.sha256(lyrics.lyrics.encode("utf-8")).hexdigest()

assert lyrics_hash == "f8b7b6fc53bdbc738a1b8beea09d086c6ca362c4c4857930488bc10153716dfd"
assert lyrics.title == "SPLASH FREE"

def test_untranslated_extraction(self):
lyrics = Animelyrics.extract_lyrics(UrlData("https://www.animelyrics.com/anime/accelworld/chasetheworld.htm"))

lyrics_hash = hashlib.sha256(lyrics.lyrics.encode("utf-8")).hexdigest()

assert lyrics_hash == "3cf6a7bc4ef62cccca49e228ef556b58d459c68f4cb0dba7240cc4dffd6b3b20"
assert lyrics.title == "Chase the world"
#
# def test_translated_extraction(self):
# lyrics = Animelyrics.extract_lyrics(UrlData("http://www.animelyrics.com/anime/swimminganime/splashfree.htm"))
#
# lyrics_hash = hashlib.sha256(lyrics.lyrics.encode("utf-8")).hexdigest()
#
# assert lyrics_hash == "f8b7b6fc53bdbc738a1b8beea09d086c6ca362c4c4857930488bc10153716dfd"
# assert lyrics.title == "SPLASH FREE"
#
# def test_untranslated_extraction(self):
# lyrics = Animelyrics.extract_lyrics(UrlData("https://www.animelyrics.com/anime/accelworld/chasetheworld.htm"))
#
# lyrics_hash = hashlib.sha256(lyrics.lyrics.encode("utf-8")).hexdigest()
#
# assert lyrics_hash == "3cf6a7bc4ef62cccca49e228ef556b58d459c68f4cb0dba7240cc4dffd6b3b20"
# assert lyrics.title == "Chase the world"

0 comments on commit 09ca666

Please sign in to comment.