def test_was_modified_since_not_implemented(self):
        fields = ['modified_time', 'size']
        side_effects = [AttributeError('fake'), NotImplementedError('fake')]
        for field in fields:
            for side_effect in side_effects:
                file_wrapper = mock.Mock()
                setattr(file_wrapper, field, mock.Mock(
                    side_effect=AttributeError('fake')))
                mixin = views.DownloadMixin()
                since = mock.sentinel.since
                self.assertTrue(mixin.was_modified_since(file_wrapper, since))
DownloadMixin.was_modified_since() returns True if file wrapper
dataset/ETHPy150Open benoitbryon/django-downloadview/tests/views.py/DownloadMixinTestCase.test_was_modified_since_not_implemented