예제 #1
0
 def test_all_calls_args_flatten(self):
     s = Spy('str')
     s.replace('t', 'T')
     s.upper()
     s.lower(1)
     self.assertEqual(['t', 'T', 1], s.all_calls_args_flatten())
예제 #2
0
 def test_all_calls_args(self):
     s = Spy('str')
     s.replace('t', 'T')
     s.upper()
     s.lower(1)
     self.assertEqual([('t', 'T'), (), (1, )], s.all_calls_args())