[BangPypers] Query with respect to mock module

Nitin Kumar nitin.nitp at gmail.com
Tue Mar 25 08:00:35 CET 2014

Hi All,

I am try to write test case with mocking original libraries.
But we have scenario that some time we need this mock but some time we need
to create object of original class so that test run on real scenario.

Is there a way we can play with mock library or any other way that some
time same test case runs with mock and some time with original objects?

Right now we are writing 2 testcases one using mock and one with original
class object.

Nitin K

More information about the BangPypers mailing list