def METHOD_NAME(self, **kwargs):
    set_up_db()
    coding_systems_base_path = Path(settings.BASE_DIR, "coding_systems")
    snomed_fixtures_path = coding_systems_base_path / "snomedct" / "fixtures"
    for fixture_name in ["core-model-components", "tennis-elbow", "tennis-toe"]:
        call_command(
            "loaddata",
            snomed_fixtures_path / f"{fixture_name}.snomedct_test_20200101.json",
            database="snomedct_test_20200101",
        )
    # we also need to load the BNF data so `build_fixtures` will work (it makes bnf fixtures as
    # well as snomed ones)
    call_command(
        "loaddata",
        coding_systems_base_path
        / "bnf"
        / "fixtures"
        / "asthma.bnf_test_20200101.json",
        database="bnf_test_20200101",
    )
    # create the CodingSystemReleases so the fixtures can use them to select the coding
    # system version for a codelist, and the database for retrieving coding system data
    versioning_fixtures_path = coding_systems_base_path / "versioning" / "fixtures"
    call_command(
        "loaddata", versioning_fixtures_path / "coding_system_releases.json"
    )
    # Ensure the coding system fixtures have loaded to the correct database
    # Not only should there be no coding system data in the default database, but migrations
    # for the snomedct app should not have run on the default database at all
    # In order to confirm that this is the case, we attempt to access a snomedct Concept model
    # using the default database, and check that it raises an OperationError as expected, as the
    # snomedct_concept table doesn't exist in the database
    try:
        Concept.objects.using("default").count()
    except OperationalError:
        pass
    else:
        raise CommandError(
            "Default database should not contain coding system tables"
        )
    # The fixtures have loaded as expected, to the snomedct test database
    assert Concept.objects.using("snomedct_test_20200101").count() > 0
    fixtures = build_fixtures()
    organisation_user = fixtures["organisation_user"]
    client = Client()
    client.force_login(organisation_user)
    for version_key in [
        "version_with_no_searches",
        "version_with_some_searches",
        "version_with_complete_searches",
        "version_from_scratch",
    ]:
        version = fixtures[version_key]
        if version_key != "version_from_scratch":
            draft = export_to_builder(
                version=version,
                author=organisation_user,
                coding_system_database_alias="snomedct_test_20200101",
            )
        with override_settings(ALLOWED_HOSTS="*"):
            rsp = client.get(draft.get_builder_draft_url())
        data = {
            context_key: rsp.context[context_key]
            for context_key in [
                "searches",
                "filter",
                "tree_tables",
                "all_codes",
                "included_codes",
                "excluded_codes",
                "parent_map",
                "child_map",
                "code_to_term",
                "code_to_status",
                "is_editable",
                "update_url",
                "search_url",
                "versions",
                "metadata",
            ]
        }
        # Ensure that all fields are sorted, to allow for meaningful diffs should
        # the data change.
        data["all_codes"] = sorted(data["all_codes"])
        data["included_codes"] = sorted(data["included_codes"])
        data["excluded_codes"] = sorted(data["excluded_codes"])
        data["parent_map"] = {
            code: sorted(parents)
            for code, parents in sorted(data["parent_map"].items())
        }
        data["child_map"] = {
            code: sorted(children)
            for code, children in sorted(data["child_map"].items())
        }
        data["code_to_term"] = dict(sorted(data["code_to_term"].items()))
        data["code_to_status"] = dict(sorted(data["code_to_status"].items()))
        js_fixtures_path = Path(
            settings.BASE_DIR, "static", "test", "js", "fixtures"
        )
        with open(js_fixtures_path / f"{version_key}.json", "w") as f:
            json.dump(data, f, indent=2)