def test_add_image_alignment_results(self): mock_aligned_image = Mock(spec_set=[ "alignment_status_code", "overlap_metric", "pixel_offset", "get_alignment_transform" ]) mock_aligned_image.get_alignment_transform = MagicMock( return_value=(1.0, Point(0, 0))) result = ServiceResult("job-id", "fomulatrix", "beamline") result.set_image_alignment_results(mock_aligned_image)