old_contents: from __future__ import absolute_import, division, print_function
  
  import glob
  import os
  import procrunner
  
  expected_data_files = [
    '4_scaled.mtz',
    '4_scaled_unmerged.mtz',
    '6_scaled.mtz',
    '6_scaled_unmerged.mtz',
    'multi-crystal-report.html'
  ]
  
  def test_proteinase_k(regression_data, run_in_tmpdir, ccp4):
    data_dir = regression_data('multi_crystal_proteinase_k')
    expts = sorted(glob.glob(data_dir.join('experiments*.json').strpath))
    refls = sorted(glob.glob(data_dir.join('reflections*.pickle').strpath))
    command_line = [
      'xia2.multi_crystal_scale',
    ] + expts + refls
    print(' '.join(command_line))
    result = procrunner.run(command_line)
    for f in expected_data_files:
      assert os.path.exists(f), f
  
  def test_proteinase_k_dose(regression_data, run_in_tmpdir, ccp4):
    data_dir = regression_data('multi_crystal_proteinase_k')
    expts = sorted(glob.glob(data_dir.join('experiments*.json').strpath))
    refls = sorted(glob.glob(data_dir.join('reflections*.pickle').strpath))
    command_line = [
      'xia2.multi_crystal_scale', 'dose=1,20',
    ] + expts + refls
    print(' '.join(command_line))
    result = procrunner.run(command_line)
    for f in expected_data_files:
      assert os.path.exists(f), f
  
new_contents: from __future__ import absolute_import, division, print_function
  
  import glob
  import os
  import procrunner
  
  expected_data_files = [
    'scaled.mtz',
    'scaled_unmerged.mtz',
    'xia2-multi-crystal-report.html'
  ]
  
  def test_proteinase_k(regression_data, run_in_tmpdir, ccp4):
    data_dir = regression_data('multi_crystal_proteinase_k')
    expts = sorted(glob.glob(data_dir.join('experiments*.json').strpath))
    refls = sorted(glob.glob(data_dir.join('reflections*.pickle').strpath))
    command_line = [
      'xia2.multi_crystal_scale',
    ] + expts + refls
    print(' '.join(command_line))
    result = procrunner.run(command_line)
    for f in expected_data_files:
      assert os.path.exists(f), f
  
  def test_proteinase_k_dose(regression_data, run_in_tmpdir, ccp4):
    data_dir = regression_data('multi_crystal_proteinase_k')
    expts = sorted(glob.glob(data_dir.join('experiments*.json').strpath))
    refls = sorted(glob.glob(data_dir.join('reflections*.pickle').strpath))
    command_line = [
      'xia2.multi_crystal_scale', 'dose=1,20',
    ] + expts + refls
    print(' '.join(command_line))
    result = procrunner.run(command_line)
    for f in expected_data_files:
      assert os.path.exists(f), f
  
subject: update expected output files in test