Changes between Initial Version and Version 1 of Ticket #20093, comment 3
- Timestamp:
- Mar 19, 2013, 6:47:41 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #20093, comment 3
initial v1 1 1 What 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 3 You might want to check its `assert_called_once_with` method.