def METHOD_NAME(
    self,
    test_name,
    test_success,
    commit,
    exp_last_pass,
    exp_trans_fail,
    baseline_dir,
):
    provenance.save_test_success(
        baseline_dir, None, test_name, test_success, force_commit_test=commit
    )
    was_success, last_pass, trans_fail = provenance.get_test_success(
        baseline_dir, None, test_name, testing=True
    )
    self.assertEqual(
        test_success,
        was_success,
        msg="Broken was_success {} {}".format(test_name, commit),
    )
    self.assertEqual(
        last_pass,
        exp_last_pass,
        msg="Broken last_pass {} {}".format(test_name, commit),
    )
    self.assertEqual(
        trans_fail,
        exp_trans_fail,
        msg="Broken trans_fail {} {}".format(test_name, commit),
    )
    if test_success:
        self.assertEqual(exp_last_pass, commit, msg="Should never")