コード例 #1
0
 def test_override_tuple_methods(self):
     c = call.count()
     i = call.index(132, 'hello')
     m = Mock()
     m.count()
     m.index(132, "hello")
     self.assertEqual(m.method_calls[0], c)
     self.assertEqual(m.method_calls[1], i)
コード例 #2
0
 def test_override_tuple_methods(self):
     c = call.count()
     i = call.index(132,'hello')
     m = Mock()
     m.count()
     m.index(132,"hello")
     self.assertEqual(m.method_calls[0], c)
     self.assertEqual(m.method_calls[1], i)