469,625 Members | 1,106 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,625 developers. It's quick & easy.

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

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, 224 views)
Jul 19 '16 #1
0 796

Post your reply

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

Similar topics

4 posts views Thread by Edvard Majakari | last post: by
1 post views Thread by ischenko | last post: by
5 posts views Thread by Jacob Page | last post: by
2 posts views Thread by Ben Finney | last post: by
4 posts views Thread by David Thielen | last post: by
3 posts views Thread by Joe Van Dyk | last post: by
2 posts views Thread by Terry | last post: by
5 posts views Thread by =?Utf-8?B?cmFuZHkxMjAw?= | last post: by
reply views Thread by macap | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.