Peter, for a object foo who need a iterator to do a job, i write test to make sure the foo correctlly used the iterator, so a simple empty iterator is not enough. because in the case, i need to see if or not the foo called the iterator to get the proper data from it and do the proper translating on them. so, the mock iterator i need should be such an iterator which can returns be iterated out a lot of test data as i willed.
i guess you are not familar with unit testing. we need mock objects not because they are hard to implemented, we need them to make the tests easy and fine. - narke -- http://mail.python.org/mailman/listinfo/python-list