def test_process_image(self, mock):
        image_mock = Mock()
        image_mock.image.read.return_value = get_in_memory_image_file().read()
        image_model = Mock()
        image_model.objects.get.return_value = image_mock
        mock.return_value = image_model
        tasks.process_image(image_id=1)
        self.assertEqual(image_mock.create_display_size.call_count, 1)
        self.assertEqual(image_mock.create_thumbnail.call_count, 1)
        self.assertEqual(image_mock.process_exif_data.call_count, 1)
Sum the matrix over the given axis.  If the axis is None, sum
dataset/ETHPy150Open ofa/connect/open_connect/media/tests/test_tasks.py/ProcessImageTest.test_process_image--crossover with--dataset/ETHPy150Open scipy/scipy/scipy/sparse/compressed.py/_cs_matrix.sum