def test_was_modified_since_file(self):
        file_wrapper = mock.Mock()
        file_wrapper.was_modified_since = mock.Mock(
            return_value=mock.sentinel.was_modified)
        mixin = views.DownloadMixin()
        self.assertIs(
            mixin.was_modified_since(file_wrapper, mock.sentinel.since),
            mock.sentinel.was_modified)
        file_wrapper.was_modified_since.assert_called_once_with(
            mock.sentinel.since)
If there aren't any exceptions, the data will get saved.
dataset/ETHPy150Open benoitbryon/django-downloadview/tests/views.py/DownloadMixinTestCase.test_was_modified_since_file--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.3/tests/modeltests/transactions/tests_25.py/TransactionContextManagerTests.test_commit_on_success_succeed