def METHOD_NAME(
    self,
    cov: Coverage,
    expected_result: Dict[str, Any],
) -> None:
    """
    Helper for tests that handles the common ceremony so the tests can be clearly show the
    consequences of setting various arguments.
    """
    self.make_file("a.py", """\
        a = {'b': 1}
        if a.get('a'):
            b = 1
        elif a.get('b'):
            b = 2
        else:
            b = 3
        if not a:
            b = 4
        """)
    a = self.start_import_stop(cov, "a")
    output_path = os.path.join(self.temp_dir, "a.json")
    cov.json_report(a, outfile=output_path)
    with open(output_path) as result_file:
        parsed_result = json.load(result_file)
    self.assert_recent_datetime(
        datetime.strptime(parsed_result['meta']['timestamp'], "%Y-%m-%dT%H:%M:%S.%f")
    )
    del (parsed_result['meta']['timestamp'])
    assert parsed_result == expected_result