By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,661 Members | 791 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,661 IT Pros & Developers. It's quick & easy.

How to create mock objects for logger module to write unit tests

P: 1
Need to write unit tests for the attached python module.

Wanted to create mock objects for logger concept.

need help in creating and using logger mock objects for writing unit tests for display function

logger has 2 functions: log and info
Attached Files
File Type: txt Code to unit test.txt (1.5 KB, 190 views)
Jul 19 '16 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.