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())
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())