> Thang.method = MockAnyInstance() > object = Thang() > object.method() # <-- calls the mock, not the real method The mocker here... http://www.voidspace.org.uk/python/mock/ ...has @patch and @patch_object directives that might do it. (Luv it when you skate off the end of a language's original definition, huh?) > -- > Phlip > http://c2.com/cgi/wiki?ZeekLand