-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtest.py
More file actions
34 lines (19 loc) · 716 Bytes
/
test.py
File metadata and controls
34 lines (19 loc) · 716 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
34
import unittest
import animeworld as aw
anime_link = "https://www.animeworld.tv/play/summertime-render.GDU38"
class TestAnimeWorld(unittest.TestCase):
def setUp(self):
self.anime = aw.Anime(link=anime_link)
def test_Anime(self):
with self.subTest(msg="Anime"):
self.assertIsInstance(self.anime, aw.Anime)
with self.subTest(msg="getName"):
self.assertIsInstance(self.anime.getName(), str)
with self.subTest(msg="getTrama"):
self.assertIsInstance(self.anime.getTrama(), str)
with self.subTest(msg="getInfo"):
self.assertIsInstance(self.anime.getInfo(), dict)
# def test_Episodio(self):
# episodi = self.anime.getEpisodes()
if __name__ == '__main__':
unittest.main()