Open GoogleCodeExporter opened 8 years ago
Actually, this does not work as well (no static method anymore):
class Foo(object):
def foo(self):
return self.baz()
def baz(self):
return 8
class TestMockito(TestCase):
def test_spy(self):
s = spy(Foo())
s.foo()
verify(s).foo()
verify(s).baz()
Original comment by christop...@gmail.com
on 12 Aug 2010 at 9:28
Yes, it appears to be an issue. I will hopefuly dive into it this weekend. Busy
times.
Feel free to fix and contribute a patch if you have time.
Thanks,
Serhiy
Original comment by serhiy%oplakanets.com@gtempaccount.com
on 1 Sep 2010 at 9:19
Original issue reported on code.google.com by
christop...@gmail.com
on 12 Aug 2010 at 9:23