예제 #1
0
파일: Tests.py 프로젝트: Vladk550/SomeCode
 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"""])
예제 #2
0
파일: Tests.py 프로젝트: Vladk550/SomeCode
 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)