Problem When Unit Testing with PMock
steven at lczmsoft.com
steven at lczmsoft.com
Sun Feb 27 00:52:00 EST 2005
> def mockit(): raise StopIteration
> now pass mockit()
but it behaviors differenctly when pass in a mockit() and pass in an
iterator with empty. so i think the code emulates nothing.
> def intit(k):
> for i in range(k): yield i
Now you mean define my own iteration without the help of pmock. but
there are still so many other methods in the iterator for pass in, i
have to mock them one by one totally manually, its boring and thats the
reason why i want pmock.
More information about the Python-list
mailing list