Exemplo n.º 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."
Exemplo n.º 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."
Exemplo n.º 3
0
 def setUp(self):
     """ Builds the ability for use in the tests """
     self.ability = SniperAbility("")
Exemplo n.º 4
0
 def setUp(self):
     """ Builds the ability for use in the tests """
     self.ability = SniperAbility("")