def METHOD_NAME(self):
    """
    Ensure that the langfile parser can load UTF-8 files with an encoded
    BOM at the beginning of the file.
    See https://docs.python.org/2/library/codecs.html for details (search
    for the string "utf-8-sig").
    """
    current_dir = os.path.dirname(__file__)
    resource = lang.parse(os.path.join(current_dir, "bom.lang"))
    assert len(resource.translations) == 1
    assert_attributes_equal(
        resource.translations[0],
        source_string="Source String",
        strings={None: "Translated String"},
    )