Changes between Initial Version and Version 1 of Ticket #20093, comment 3


Ignore:
Timestamp:
03/19/2013 06:47:41 PM (2 years ago)
Author:
jcatalan
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20093, comment 3

    initial v1  
    11What I would do is mock the object and check that the save method is called with the proper args (ie. update_fields as required in this case). In case you don't know it, what I would use to mock this is python mock library: https://pypi.python.org/pypi/mock
     2
     3You might want to check its `assert_called_once_with` method.
Back to Top