forked from jorgeajimenezl/animeflv-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtests.py
More file actions
33 lines (24 loc) · 764 Bytes
/
tests.py
File metadata and controls
33 lines (24 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from animeflv import AnimeFLV
def test_init():
api = AnimeFLV()
assert api != None
def test_downloadLinksByEpisodeID():
api = AnimeFLV()
out = api.downloadLinksByEpisodeID('36557/nanatsu-no-taizai-1')
assert out != None
assert isinstance(out, list)
def test_search():
api = AnimeFLV()
out = api.search('Nanatsu no Taizai')
assert out != None
assert isinstance(out, list)
def test_getVideoServers():
api = AnimeFLV()
out = api.getVideoServers('36557/nanatsu-no-taizai-1')
assert out != None
assert isinstance(out, list)
def test_getAnimeInfo():
api = AnimeFLV()
out = api.getAnimeInfo('anime/1590/nanatsu-no-taizai')
assert out != None
assert isinstance(out, dict)