Add test for search

master
Vishnunarayan K I 2018-05-29 01:08:55 +05:30
parent b41ad961af
commit 2e0225a287
1 changed files with 7 additions and 0 deletions

View File

@ -30,3 +30,10 @@ def test_download(anime, tmpdir):
eps = (anime[0], anime[6], anime[-1])
for ep in eps:
ep.download(path=str(tmpdir))
def test_search():
results = NineAnime.search('dragon ball super')
assert len(results) == 30
assert results[0].title.lower() == 'dragon ball super'