def METHOD_NAME(self, game):
    entity = MessageEntity(type=MessageEntity.URL, offset=13, length=17)
    entity_2 = MessageEntity(type=MessageEntity.BOLD, offset=13, length=1)
    game.text_entities = [entity_2, entity]
    assert game.parse_text_entities(MessageEntity.URL) == {entity: "http://google.com"}
    assert game.parse_text_entities() == {entity: "http://google.com", entity_2: "h"}