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