예제 #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("")