def METHOD_NAME(self, yaml_file: str, expected_import_source: ImportSource, expected_import_source_type: str):
    import_job = load_job(
        source="./tests/test_configs/import_job/" + yaml_file,
    )
    source = (
        DatabaseImportSource(
            type=expected_import_source_type,
            connection="azureml:my_username_password",
            query="select * from REGION",
        )
        if expected_import_source is DatabaseImportSource
        else FileImportSource(
            type=expected_import_source_type, connection="azureml:my_username_password", path="test1/*"
        )
    )
    output_type = AssetTypes.MLTABLE if expected_import_source is DatabaseImportSource else AssetTypes.URI_FOLDER
    import_job2 = ImportJob(
        description="test_description",
        display_name="test_display_name",
        source=source,
        output=Output(type=output_type, path="azureml://datastores/workspaceblobstore/paths/output_dir/"),
    )
    assert import_job.description == import_job2.description
    assert import_job.display_name == import_job2.display_name
    assert import_job.output.type == import_job2.output.type
    assert import_job.output.path == import_job2.output.path
    assert isinstance(import_job, ImportJob)
    assert isinstance(import_job.source, expected_import_source)
    assert import_job.source.type == import_job2.source.type
    assert import_job.source.connection == import_job2.source.connection