Refactor unnecessary functions used for mocks
Refactor unnecessary functions used for mocks

This commit moves bodies of functions create_integrity_error and
commit_side_effects in test/unit/test_models.py to body of
TestCommitChanges._call method, and then removes the functions.

piotr-rusin/url-shortener,piotr-rusin/url-shortener