示例#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
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
 def setUp(self):
     """ Builds the ability for use in the tests """
     self.ability = SniperAbility("")