def test_get_file_empty_field(self):
        view = setup_view(views.ObjectDownloadView(file_field='other_field'),
                          'fake request')
        view.object = mock.Mock()
        view.object.other_field = None
        with self.assertRaises(exceptions.FileNotFound):
            view.get_file()
ObjectDownloadView.get_file() raises FileNotFound if field does not
dataset/ETHPy150Open benoitbryon/django-downloadview/tests/views.py/ObjectDownloadViewTestCase.test_get_file_empty_field