Пример #1
0
 def test_pokemon_1(self):
     pokemon = Pokemon.get_id(1)
     p = {c.name: getattr(pokemon, c.name) for c in pokemon.__table__.columns}
     self.assertEqual(p["POKEMON_ID"], 1)
     self.assertEqual(p["POKEMON_NAME"], "Bulbasaur")
     self.assertEqual(p["POKEMON_HP"], 45)
     self.assertEqual(p["POKEMON_ATK"], 49)
     self.assertEqual(p["POKEMON_DEF"], 49)
     self.assertEqual(p["POKEMON_SPATK"], 65)
     self.assertEqual(p["POKEMON_SPDEF"], 65)
     self.assertEqual(p["POKEMON_SPD"], 45)
Пример #2
0
 def test_pokemon_7(self):
     pokemon = Pokemon.get_id(74)
     p = {c.name: getattr(pokemon, c.name) for c in pokemon.__table__.columns}
     self.assertEqual(p["POKEMON_ID"], 74)
     self.assertEqual(p["POKEMON_NAME"], "Geodude")
     self.assertEqual(p["POKEMON_HP"], 40)
     self.assertEqual(p["POKEMON_ATK"], 80)
     self.assertEqual(p["POKEMON_DEF"], 100)
     self.assertEqual(p["POKEMON_SPATK"], 30)
     self.assertEqual(p["POKEMON_SPDEF"], 30)
     self.assertEqual(p["POKEMON_SPD"], 20)
     self.assertEqual(p["POKEMON_EV"], "DEF: 1 ")
Пример #3
0
 def test_pokemon_5(self):
     pokemon = Pokemon.get_id(373)
     p = {c.name: getattr(pokemon, c.name) for c in pokemon.__table__.columns}
     self.assertEqual(p["POKEMON_ID"], 373)
     self.assertEqual(p["POKEMON_NAME"], "Salamence")
     self.assertEqual(p["POKEMON_HP"], 95)
     self.assertEqual(p["POKEMON_ATK"], 135)
     self.assertEqual(p["POKEMON_DEF"], 80)
     self.assertEqual(p["POKEMON_SPATK"], 110)
     self.assertEqual(p["POKEMON_SPDEF"], 80)
     self.assertEqual(p["POKEMON_SPD"], 100)
     self.assertEqual(p["POKEMON_EV"], "ATK: 3 ")
Пример #4
0
 def test_pokemon_6(self):
     pokemon = Pokemon.get_id(218)
     p = {c.name: getattr(pokemon, c.name) for c in pokemon.__table__.columns}
     self.assertEqual(p["POKEMON_ID"], 218)
     self.assertEqual(p["POKEMON_NAME"], "Slugma")
     self.assertEqual(p["POKEMON_HP"], 40)
     self.assertEqual(p["POKEMON_ATK"], 40)
     self.assertEqual(p["POKEMON_DEF"], 40)
     self.assertEqual(p["POKEMON_SPATK"], 70)
     self.assertEqual(p["POKEMON_SPDEF"], 40)
     self.assertEqual(p["POKEMON_SPD"], 20)
     self.assertEqual(p["POKEMON_EV"], "SPATK: 1 ")
Пример #5
0
 def test_pokemon_4(self):
     pokemon = Pokemon.get_id(13)
     p = {c.name: getattr(pokemon, c.name) for c in pokemon.__table__.columns}
     self.assertEqual(p["POKEMON_ID"], 13)
     self.assertEqual(p["POKEMON_NAME"], "Weedle")
     self.assertEqual(p["POKEMON_HP"], 40)
     self.assertEqual(p["POKEMON_ATK"], 35)
     self.assertEqual(p["POKEMON_DEF"], 30)
     self.assertEqual(p["POKEMON_SPATK"], 20)
     self.assertEqual(p["POKEMON_SPDEF"], 20)
     self.assertEqual(p["POKEMON_SPD"], 50)
     self.assertEqual(p["POKEMON_EV"], "SPD: 1 ")