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


Ignore:
Timestamp:
Mar 19, 2013, 6:47:41 PM (12 years ago)
Author:
jcatalan

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