def METHOD_NAME() -> None:
    build_file = dedent(
        """
        thing(name="one")
        thing(name="bad", age=fake)
        thing(name="two")
        another_fake()
        yet_another()
        thing(name="three")
        and_finally(age=fakey)
        """
    )
    address_map = parse_address_map(build_file, ignore_unrecognized_symbols=True)
    assert {
        "one": TargetAdaptor(type_alias="thing", name="one"),
        "bad": TargetAdaptor(type_alias="thing", name="bad", age=_UnrecognizedSymbol("fake")),
        "two": TargetAdaptor(type_alias="thing", name="two"),
        "three": TargetAdaptor(
            type_alias="thing",
            name="three",
        ),
    } == address_map.name_to_target_adaptor
    with pytest.raises(MappingError):
        parse_address_map(build_file, ignore_unrecognized_symbols=False)