Exemplo n.º 1
0
class applyEffect(unittest.TestCase):
    """ Test cases of applyEffect """
    
    def  setUp(self):
        """ Build the *** for the test """
        self.delegate = UselessDelegate()
        
    def message(self):
        """ Test that the message is correct """
        messages = self.delegate.applyEffect(None, None, None)
        assert messages == [UselessDelegate.message], "Should have a message saying the attack was useless"
Exemplo n.º 2
0
class applyEffect(unittest.TestCase):
    """ Test cases of applyEffect """
    def setUp(self):
        """ Build the *** for the test """
        self.delegate = UselessDelegate()

    def message(self):
        """ Test that the message is correct """
        messages = self.delegate.applyEffect(None, None, None)
        assert messages == [
            UselessDelegate.message
        ], "Should have a message saying the attack was useless"
Exemplo n.º 3
0
 def setUp(self):
     """ Build the *** for the test """
     self.delegate = UselessDelegate()
Exemplo n.º 4
0
 def  setUp(self):
     """ Build the *** for the test """
     self.delegate = UselessDelegate()