Esempio n. 1
0
class stopAttack(unittest.TestCase):
    """ Test that stopAttack returns the correct default values """
    def setUp(self):
        """ Builds the ability """
        self.ability = Ability(None)

    def properReturnValues(self):
        """ Check that stopAttack returns the proper default values """
        stop, messages = self.ability.stopAttack(None)
        assert not stop, "Should not stop"
        assert len(messages) == 0, "Messages should have no elements"
Esempio n. 2
0
class stopAttack(unittest.TestCase):
    """ Test that stopAttack returns the correct default values """

    def setUp(self):
        """ Builds the ability """
        self.ability = Ability(None)

    def properReturnValues(self):
        """ Check that stopAttack returns the proper default values """
        stop, messages = self.ability.stopAttack(None)
        assert not stop, "Should not stop"
        assert len(messages) == 0, "Messages should have no elements"