@@ -0,0 +1,974 @@
+%22%22%22 Test postprocessing algorithms%0A%22%22%22%0Aimport numpy as np%0A%0Afrom yatsm.algorithms.postprocess import commission_test%0A%0A%0Adef test_commission_nochange(sim_nochange):%0A    %22%22%22 In no change situation, we should get back exactly what we gave in%0A    %22%22%22%0A    record = commission_test(sim_nochange, 0.10)%0A    assert len(record) == 1%0A    np.testing.assert_array_equal(record, sim_nochange.record)%0A%0A%0Adef test_commission_no_real_change(sim_no_real_change):%0A    %22%22%22 Test commission test's ability to resolve spurious change%0A    %22%22%22%0A    record = commission_test(sim_no_real_change, 0.01)%0A    assert len(record) == 1%0A    assert record%5B0%5D%5B'break'%5D == 0%0A%0A%0Adef test_commission_real_change(sim_real_change):%0A    %22%22%22 Test commission test's ability to avoid merging real changes%0A%0A    This test is run with a relatively large p value (very likely to reject H0%0A    and retain changes)%0A    %22%22%22%0A    record = commission_test(sim_real_change, 0.10)%0A    assert len(record) == len(sim_real_change.record)%0A

Add tests for commission test #76