R. Jayakrishnan added the comment:

Thanks Terry for "we have the option of gui tests when mocking becomes too 
complicated"

I put two separate classes IdleHistoryMockTest and IdleHistoryTKTest for mock 
and TK text usages and used TK Text to test IdleHistory.history_do function. 
This worked for me and hopefully IMHO the logic behind history_do is tested 
enough for now.

----------
Added file: http://bugs.python.org/file30963/test_idlehistory2.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18425>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to