def METHOD_NAME(self):
    with TemporaryDirectory() as t, mock.patch("warnings.warn") as w:
        outfile = Path(t) / "foo.txt"
        continuation = Path(t) / "out.yml"
        generate_data(
            yaml_file="tests/BDI_generator.yml",
            user_options={"num_accounts": "15"},
            target_number=(20, "Account"),
            debug_internals=True,
            output_format="json",
            output_file=outfile,
            generate_continuation_file=continuation,
        )
        assert outfile.exists()
        assert continuation.exists()
        with continuation.open() as f:
            assert yaml.safe_load(f)
        assert "num_accounts" in str(w.mock_calls)