def METHOD_NAME(
    testcase, aladdin: TokenImportAladdin
):
    """Test import of invalid xml."""
    with pytest.raises(TokenImportError):
        aladdin.do_import(
            file_path=os.path.join(
                testcase.manage_ui.test_data_dir, "wrong_token.xml"
            )
        )
    check_menu_is_closed(testcase.manage_ui)