コード例 #1
0
class giveCrit(unittest.TestCase):
    """ Test that giveCrit operates correctly """
    def setUp(self):
        """ Builds the ability for use in the tests """
        self.ability = SniperAbility("")

    def alwaysReturns3(self):
        """ Check gaurded stat is the only protected stat """
        newMod = self.ability.giveCrit(2)

        assert newMod == 3, "Mod should always be three."
コード例 #2
0
ファイル: sniper_test.py プロジェクト: cloew/Pokemon-Project
class giveCrit(unittest.TestCase):
    """ Test that giveCrit operates correctly """

    def setUp(self):
        """ Builds the ability for use in the tests """
        self.ability = SniperAbility("")

    def alwaysReturns3(self):
        """ Check gaurded stat is the only protected stat """
        newMod = self.ability.giveCrit(2)

        assert newMod == 3, "Mod should always be three."
コード例 #3
0
 def setUp(self):
     """ Builds the ability for use in the tests """
     self.ability = SniperAbility("")
コード例 #4
0
ファイル: sniper_test.py プロジェクト: cloew/Pokemon-Project
 def setUp(self):
     """ Builds the ability for use in the tests """
     self.ability = SniperAbility("")