I'd like to create a mock object in python -


I need a dummy object that I can install in Python and create attributes through a setter for programm I am

I made it into an object but probably for a good reason which was not working.

How can I use for such purposes in Python, do not really define yourself

You can not use the Fake = object , instead of just object

  Class duplicate (object): pass fake = mock () setter (fake, 'test', 'whatever')    

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -