def METHOD_NAME():
    # If a custom database_alias is set, and doesn't match the required database_alias
    # pattern, an AssertionError is raised
    with pytest.raises(AssertionError):
        CodingSystemRelease.objects.create(
            coding_system="null",
            release_name="Version 1",
            valid_from=datetime(2022, 10, 1, tzinfo=timezone.utc),
            database_alias="custom_db_alias",
            state=ReleaseState.READY,
        )
    # make a CSR with the default alias
    csr = CodingSystemRelease.objects.create(
        coding_system="null",
        release_name="Version 1",
        valid_from=datetime(2022, 10, 1, tzinfo=timezone.utc),
        state=ReleaseState.READY,
    )
    # if any of the component fields are changed, the db alias must be updated too
    with pytest.raises(AssertionError):
        csr.release_name = "Version 2"
        csr.save()
    csr.release_name = "Version 2"
    csr.database_alias = "null_version-2_20221001"
    csr.save()