Esempio n. 1
0
class takeCrit(unittest.TestCase):
    """ Test that takeCrit returns the correct mods """
    def setUp(self):
        """ Builds the delegate and side for use in the tests """
        self.ability = Ability(None)
        self.mod = 2

    def properReturnValues(self):
        """ Check that takeCrit returns the proper default values """
        mod, messages = self.ability.takeCrit(self.mod, None, None)

        assert mod == self.mod, "Mod should not be altered."
        assert len(messages) == 0, "Should have no messages returned."
Esempio n. 2
0
class takeCrit(unittest.TestCase):
    """ Test that takeCrit returns the correct mods """

    def setUp(self):
        """ Builds the delegate and side for use in the tests """
        self.ability = Ability(None)
        self.mod = 2

    def properReturnValues(self):
        """ Check that takeCrit returns the proper default values """
        mod, messages = self.ability.takeCrit(self.mod, None, None)

        assert mod == self.mod, "Mod should not be altered."
        assert len(messages) == 0, "Should have no messages returned."