コード例 #1
0
ファイル: tests.py プロジェクト: RobinsonNguyen/cs373-idb
 def test_moves_2(self):
     move = Move.get("Pound")
     p = {c.name: getattr(move, c.name) for c in move.__table__.columns}
     self.assertEqual(p["MOVE_ID"], 1)
     self.assertEqual(p["MOVE_NAME"], "Pound")
     self.assertEqual(p["MOVE_POWER"], 40)
     self.assertEqual(p["MOVE_ACCURACY"], 100)
     self.assertEqual(p["MOVE_PP"], 35)
コード例 #2
0
ファイル: tests.py プロジェクト: RobinsonNguyen/cs373-idb
 def test_moves_4(self):
     move = Move.get("Water-pulse")
     p = {c.name: getattr(move, c.name) for c in move.__table__.columns}
     self.assertEqual(p["MOVE_ID"], 352)
     self.assertEqual(p["MOVE_NAME"], "Water-pulse")
     self.assertEqual(p["MOVE_TYPE"], "Water")
     self.assertEqual(p["MOVE_CATEGORY"], "Special")
     self.assertEqual(p["MOVE_POWER"], 60)
     self.assertEqual(p["MOVE_ACCURACY"], 100)
     self.assertEqual(p["MOVE_PP"], 20)
     self.assertEqual(p["MOVE_DESCRIPTION"], "Inflicts regular damage.  Has a 20% chance to confuse the target.")
コード例 #3
0
ファイル: tests.py プロジェクト: RobinsonNguyen/cs373-idb
 def test_moves_6(self):
     move = Move.get("Psychic")
     p = {c.name: getattr(move, c.name) for c in move.__table__.columns}
     self.assertEqual(p["MOVE_ID"], 94)
     self.assertEqual(p["MOVE_NAME"], "Psychic")
     self.assertEqual(p["MOVE_TYPE"], "Psychic")
     self.assertEqual(p["MOVE_CATEGORY"], "Special")
     self.assertEqual(p["MOVE_POWER"], 90)
     self.assertEqual(p["MOVE_ACCURACY"], 100)
     self.assertEqual(p["MOVE_PP"], 10)
     self.assertEqual(
         p["MOVE_DESCRIPTION"],
         "Inflicts regular damage.  Has a 10% chance to lower the target's Special Defense by one stage.",
     )
コード例 #4
0
ファイル: tests.py プロジェクト: RobinsonNguyen/cs373-idb
 def test_moves_5(self):
     move = Move.get("Aurora-beam")
     p = {c.name: getattr(move, c.name) for c in move.__table__.columns}
     self.assertEqual(p["MOVE_ID"], 62)
     self.assertEqual(p["MOVE_NAME"], "Aurora-beam")
     self.assertEqual(p["MOVE_TYPE"], "Ice")
     self.assertEqual(p["MOVE_CATEGORY"], "Special")
     self.assertEqual(p["MOVE_POWER"], 65)
     self.assertEqual(p["MOVE_ACCURACY"], 100)
     self.assertEqual(p["MOVE_PP"], 20)
     self.assertEqual(
         p["MOVE_DESCRIPTION"],
         "Inflicts regular damage.  Has a 10% chance to lower the target's Attack by one stage.",
     )
コード例 #5
0
ファイル: tests.py プロジェクト: RobinsonNguyen/cs373-idb
 def test_moves_4(self):
     move = Move.get("Rock-tomb")
     p = {c.name: getattr(move, c.name) for c in move.__table__.columns}
     self.assertEqual(p["MOVE_ID"], 317)
     self.assertEqual(p["MOVE_NAME"], "Rock-tomb")
     self.assertEqual(p["MOVE_TYPE"], "Rock")
     self.assertEqual(p["MOVE_CATEGORY"], "Physical")
     self.assertEqual(p["MOVE_POWER"], 50)
     self.assertEqual(p["MOVE_ACCURACY"], 80)
     self.assertEqual(p["MOVE_PP"], 10)
     self.assertEqual(
         p["MOVE_DESCRIPTION"],
         "Inflicts regular damage.  Has a 100% chance to lower the target's Speed by one stage.",
     )