diff --git "a/tests/sources/Lucky\342\230\206Star manga - MyAnimeList.net.html" "b/tests/sources/Lucky\342\230\206Star manga - MyAnimeList.net.html" new file mode 100644 index 0000000..e116490 --- /dev/null +++ "b/tests/sources/Lucky\342\230\206Star manga - MyAnimeList.net.html" @@ -0,0 +1,772 @@ + + + + Lucky☆Star - MyAnimeList.net + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ MyAnimeList.net +
+ + + +
+ +
+
+ +
+
+ + +
+
+

Ranked #1162
Lucky☆Star (Manga)

+
+ + + + + +
Lucky☆Star
+ +

Alternative Titles

English: Lucky ☆ Star
Japanese: らき☆すた

+

Information

+ +
Type: Manga
+
Volumes: Unknown +
+
Chapters: Unknown +
+
Status: Publishing
+
Published: Jan 2004 to ?
Authors: + Yoshimizu, Kagami (Story & Art)
Serialization: + Comp Ace

+

Statistics

Score: 7.941 (scored by 3401 users)
+
Ranked: #11622
+
Popularity: #394
+ +
Members: 8,013
+
Favorites: 584
1 indicates a weighted score
+
2 based on the top manga page.
+
+ +

My Info

+ +
+
+

Popular Tags

+ comedy school slice of life
+ + +
+ + + + + + + + + +

Synopsis

Lucky Star's story portrays the lives + of several school girls attending a Japanese high school with a very +loose humor tone. The setting is based on the town Kasukabe in Saitama +Prefecture. The main heroine is Konata Izumi, an athletic and +intelligent girl who, despite these attributes, is not in a sports club, + and has low grades. Her laziness at school is due to her love for anime + and video games and lack of interest in anything else. The +serialization began with the four main characters in their first year of + high school: Konata Izumi, Kagami Hiiragi, Tsukasa Hiiragi, and Miyuki +Takara. As the story progresses, they move onto their second and third +year.
+(Source: MU)
+
+ + + + +

Related Manga

Side story: Lucky Star Pocket Travelers, Miyakawa-ke no Kuufuku, Lucky☆Star: Yuruyuru Days
Spin-off: BooBoo KagaBoo
Adaptation: Lucky☆Star
+
+

Characters

+ + + +
+
 Tsukasa
+ +
+ Hiiragi, Tsukasa +
Main
+ +
+ + + +
+
 Kagami
+ +
+ Hiiragi, Kagami +
Main
+ +
+ + + +
+
 Konata
+ +
+ Izumi, Konata +
Main
+ +
+ + + +
+
 Miyuki
+ +
+ Takara, Miyuki +
Main
+ +
+ + + +
+
 Gamers Worker
+ +
+ Gamers Worker +
Supporting
+ +
+ + + +
+
 Tadao
+ +
+ Hiiragi, Tadao +
Supporting
+ +
+ + + +
+
 Minami
+ +
+ Iwasaki, Minami +
Supporting
+ +
+
+
+
+ +
+


Write a review | More reviewsReviews

+
+
Nov 6, 2008
+
+
+ + + + + + +
+
+
+
+
+
+
+ + rcdeidara
+ + +
+ + + +
+
+
+ + The anime follows the manga pretty closely, though those who +complained about the infamous food episode (Episode one.) May be a bit +happier. As it's a 4 panel manga, the chapters are pretty short, and +it's pretty fun to, if nothing else, see the characters expressions.
+
+Of course, if you are interested in this manga because a friend told you + about it, they probably mentioned that it's a spice of life, so don't +expect too much action.
+
+And, if you liked Azumanga Daioh, and if you've seen some reasonably +popular anime series (Haruhi, Fumoffu...) you might like this.
+
+
+ I found this review Helpful  Not Helpful
+
+ +
+
May 6, 2010
+
+
+ + + + + + +
+
+
+
+
+
+
+ + Zarola
+ + +
+ + + +
+
+
+ + I started this manga expecting a book packed with stale, +slow-paced humor and far too many references to count. The impression +the anime gave me was nothing like this manga.
+
+Story - 9
+Lucky Star doesn't have a story, really. It follows the everyday life of + four girls in high school. There are a lot of school-based comedy +manga, but the way this one is executed is great. Each comic is four +panels and they don't fail to deliver a relate-able slice of life.
+
+Art - 8
+While the art in this manga is fitting for the simplicity of it, it isn't the best. The characters are supposed to read more
+
+
+ I found this review Helpful  Not Helpful
+
+ +
+

+ + User Recommendations

+ +
+ + + + + +
+
+
+ +
+
+
+
+ + + +
+
Very funny school comedies. Similar chara design and sense of humour. Both are four panels.
+ +
+ + +
+
+ +
+ + + + + +
+
+
+ +
+
+
+
+ + + +
+
Both are about a bunch of girls and the setting is usually at school. They're also 4komas.
+ +
+ + +
+
+ + +
+

Recent News

+ + + + + + + + + + + + +
Ignore/Unignore this thread A Man Arrested For Threatening to Blast Lucky Star Museum ( 1 2 3 4 5 ... Last Page )
+ dtshyk
103 repliesby StormSky92 »»
+06-10-12, 11:40 PM
Ignore/Unignore this thread Live Action Stage Play of Lucky Star Announced ( 1 2 3 )
+ dtshyk
47 repliesby Paladin65536 »»
+03-01-11, 8:32 AM

Recent Forum Discussion

+ + + + + + + + + + + + +
Ignore/Unignore this thread Never seen anything past vol.3
+ kitsuneonee
1 repliesby Keitaro004 »»
+06-01-14, 12:55 AM
Ignore/Unignore this threadPoll: Lucky ☆ Star Chapter 230 Discussion
+ Nyperold
1 repliesby Keitaro004 »»
+10-18-13, 12:08 PM

Related Clubs

♥♥Ayano Minegishi♥♥, *¨°º¤•Chizzy's FanClub•¤º°¨*, *~Anime/Manga Club for ALL~*, -=DELETED=-, 4-Koma and Omake FC, Aishiteru, Akatsuki Otaku Club, Akira Kogami Fan Club, Ani-Newbies~!, Anime and More!, Anime Fanclub, Anime Tenchou, Animes cats and dogs, Anti Lucky☆Star Club, Anti-Lucky Star Club, April Birthdays!!, Ayano Minegishi, A~World Art Room, A~World Society, ☼ Patisseries Lovers ☼, ☆Lucky ☆ Star☆ Fanclub☆, ★ Kagami Hiiragi (柊 かがみ) ★, ►English Licensed Manga Club - PART 1◄, ♔ xKawaii Anime/Manga Girls ♔, Chicken Leg, Choco Cornet Club, Claim A Psycho., Cute Girls Doing Cute Things, Cute Manga Lovers!, Deadpan Humor, Drama CD Club!, Eleventy Billionth Club, Friends of 4-koma, Get Your Quota! For MAL Claims Clubs, Girls Otaku Community, Green Haired Anime Characters, Hayate, Help Lucky Star secure a UK Release!, Hiiragi ★ Twins, Hiiragi Kagami, Hiiragi Kagami's Shrine, HURRAY BOOBIES!!, I'm Izumi Konata?, International Society of Not Giving a Fuck (ISNGaF), K-I-P-O-A [Konata Izumi's Palace Of Awesomeness], Kagami Hiiragi Lovers, Kawaii All, KonaKona followers unite!!!!, Konata fan club, Konata Izumi followers unite!, Kuyukly's Room, LOL Fang Club!, Loli Fan Club, Lucky ☆ Star Lovers, Lucky ☆ Star Fanclub, Lucky Star Fan Club8-}, Lucky Star Fans, lucky star rp, lucky star season 2 petition, Lucky Star Shrine, Lucky Star THE ULTIMATE FANS CLUB!!!, lucky star underdogs, Lucky★Channel, MadokaaChan's Best Club, MAL Adopt a Pet! [CLOSED], MAL's Group Fanfiction Library, Mika's Secret Corner , Miyuki Takara Fanclub, Mole=Moe, Moonlit Mischief, Ojou-sama Fanclub, Otaku Fan Club, PINK, Pirate Party MAL, Pocky Daisuki (I love Pocky)!, Ponytail/Pigtail Fan Club, Purple and Blue Haired Characters, Sakura421 and her friends, Sexy Anime Girls!, SkyBat82's Helping Hand (S.H.H), Students in Anime and Manga, SUMMER FESTIVAL RP, The Bitchy Anime Girls Club, The Church of Konata, The FanClub of Yuichiro Jienotsu Nagashima, The Fluffy Sand Sound Village, The Konata Izumi Fanclub, The Lighthearted Anime Club, The Otaku of Anime, The Sibling Spectrum, The Taiyaki Lovers Society , The Twin Factor, Timotei Timotei TIMOTEI!!!!!!!!!!!!!, Tsukasa Forever!!, Ultimate Heroine, Visual Novel Petition Club, We ♥ Smart Anime Characters!~~, We luv Kagami, ZUMUZI SCHOOL OF MUSIC AND ACTION LOVERS, [Facial Hair]Sexy[/Facial Hair], ~ My Computer Obsession ~, ~ WATER BOTTLE CLUB ~, ~*Sophie's Fanclub of Lolis!*~, ~Dear Sister~ , ~~Just Like Konata CLUB^_^

More Users | My FriendsRecent Updates by Users

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

+

External Links

MangaUpdates, Wikipedia +
+ +
+
+ +
+ +
+ +Help     +FAQ     +About     +Contact     +Terms     +Privacy     + AdChoices + + + +
+ +
+ + +
+ + +
+ + + + + + + + + + + + + + + +
\ No newline at end of file diff --git a/tests/test_manga.py b/tests/test_manga.py index 6404592..e3ad346 100644 --- a/tests/test_manga.py +++ b/tests/test_manga.py @@ -1,22 +1,51 @@ import unittest +from mock import Mock +from os import path -from pymal import account +import bs4 from pymal import anime from pymal import manga from pymal.account_objects import my_manga +from pymal import global_functions -from tests.constants_for_testing import ADD_MANGA_ID, MANGA_ID, ACCOUNT_TEST_USERNAME, ACCOUNT_TEST_PASSWORD +from tests.constants_for_testing import ADD_MANGA_ID, MANGA_ID, SOURCES_DIRECTORY + + +class FetchWebTestCase(unittest.TestCase): + @classmethod + def setUpClass(cls): + cls.manga = manga.Manga(MANGA_ID) + + def test_fetch_web(self): + self.manga.reload() class ReloadTestCase(unittest.TestCase): @classmethod def setUpClass(cls): - cls.manga = manga.Manga(MANGA_ID) - cls.manga.reload() + cls.__global_functions_get_content_wrapper_div = global_functions.get_content_wrapper_div + + with open(path.join(SOURCES_DIRECTORY, 'Lucky☆Star manga - MyAnimeList.net.html'), "rb") as f: + data = f.read().decode() + html = bs4.BeautifulSoup(data, "html5lib") + myanimelist_div = html.body.find(name="div", attrs={"id": 'myanimelist'}) + content_wrapper_div = myanimelist_div.find(name="div", attrs={"id": "contentWrapper"}, recursive=False) + global_functions.get_content_wrapper_div = Mock(return_value=content_wrapper_div) + + @classmethod + def tearDownClass(cls): + global_functions.get_content_wrapper_div = cls.__global_functions_get_content_wrapper_div - def test_manga_id(self): - self.assertEqual(self.manga.id, MANGA_ID) + def setUp(self): + self.manga = manga.Manga(MANGA_ID) + self.__reload = self.manga.reload + self.manga.reload = Mock(wraps=self.__reload) + + def tearDown(self): + self.manga.reload.assert_called_once_with() + self.manga.reload = self.__reload + manga.Manga._unregiter(self.manga) def test_manga_title(self): self.assertEqual(self.manga.english, 'Lucky ☆ Star') @@ -123,52 +152,27 @@ def test_manga_alternative_settings(self): self.assertIsInstance(alternative_setting, manga.Manga) def test_str(self): - repr(self.manga) + self.manga.reload() + self.assertEqual(str(self.manga), '') class NoReloadTestCase(unittest.TestCase): - @classmethod - def setUpClass(cls): - cls.account = account.Account(ACCOUNT_TEST_USERNAME, ACCOUNT_TEST_PASSWORD) - cls.manga = list(cls.account.mangas)[0] + def setUp(self): + self.manga = manga.Manga(MANGA_ID) + self.__reload = self.manga.reload + self.manga.reload = Mock(wraps=self.__reload) + + def tearDown(self): + self.assertFalse(self.manga.reload.called) + self.manga.reload = self.__reload + manga.Manga._unregiter(self.manga) def test_id(self): self.assertIsInstance(self.manga.id, int) - def test_title(self): - self.assertIsInstance(self.manga.english, str) - - def test_image_url(self): - self.assertIsInstance(self.manga.image_url, str) - - def test_synonyms(self): - self.assertIsInstance(self.manga.synonyms, str) - - def test_type(self): - self.assertIsInstance(self.manga.type, str) - - def test_manga_chapters(self): - try: - self.assertIsInstance(self.manga.chapters, int) - except AssertionError: - self.assertEqual(self.manga.chapters, float('inf')) - self.assertEqual(self.manga.chapters, self.manga.volumes) - - def test_manga_volumes(self): - try: - self.assertIsInstance(self.manga.volumes, int) - except AssertionError: - self.assertEqual(self.manga.volumes, float('inf')) - - def test_start_time(self): - self.assertIsInstance(self.manga.start_time, float) - - def test_end_time(self): - self.assertIsInstance(self.manga.end_time, float) - def test_str(self): - repr(self.manga) + self.assertEqual(str(self.manga), '') @unittest.skip("Delete is not working") def test_add_and_delete(self):