예제 #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"
예제 #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"
예제 #3
0
 def setUp(self):
     """ Build the *** for the test """
     self.delegate = UselessDelegate()
예제 #4
0
 def  setUp(self):
     """ Build the *** for the test """
     self.delegate = UselessDelegate()