def test_Logger(self): bl = SomeClass() bl.speak("I'm Batman") bl.scream("AAAAAAAAAAA") self.assertItemsEqual(bl.log, [ """Method speak was called with lovely arguments ("I'm Batman", 1) I'm speaking. I'm Batman as a result was returned""", """Method scream was called with lovely arguments ('AAAAAAAAAAA',) I'm screaming. AAAAAAAAAAA as a result was returned"""])
def test_Logger(self): bl = SomeClass() bl.speak("I'm Anon") bl.scream("Kyyyyyy") s = ['Method speak was called with arguments ("I\'m Anon",) I\'m speaking. I\'m Anon as a result was returned', "Method scream was called with arguments ('Kyyyyyy',) I'm screaming. Kyyyyyy as a result was returned"] self.assertItemsEqual(bl.log, s)