Beispiel #1
0
 def setUp(self):
     self.director = urllib2.build_opener(
         MockHTTPHandler("must first login.txt"))
     anime = dict(my_id=0,
                  series_animedb_id=0,
                  my_watched_episodes=0,
                  my_status=0,
                  my_score=0)
     self.request = AniChou.malcom.Panel(anime)
Beispiel #2
0
 def setUp(self):
     self.director = urllib2.build_opener(
         MockHTTPHandler("invalid username.txt"))
     self.request = AniChou.malcom.List(username="******")
Beispiel #3
0
 def setUp(self):
     self.director = urllib2.build_opener(MockHTTPHandler("list.xml.gz"))
     self.request = AniChou.malcom.List(username="******")
Beispiel #4
0
 def setUp(self):
     self.director = urllib2.build_opener(
         MockHTTPHandler("search result holic.txt"))
     self.request = AniChou.malcom.Search("Holic")
Beispiel #5
0
 def setUp(self):
     self.cache = tempfile.mkdtemp()
     self.url = "http://cdn.myanimelist.net/images/anime/12/3335.jpg"
     self.director = urllib2.build_opener(MockHTTPHandler("image.bin"))
     self.request = AniChou.malcom.Image(self.url, self.cache)
Beispiel #6
0
 def setUp(self):
     self.director = urllib2.build_opener(
         MockHTTPHandler("bad username.txt"))
     self.request = AniChou.malcom.Login(username="******", password="******")