def METHOD_NAME(self, game):
    entity = MessageEntity(type=MessageEntity.URL, offset=13, length=17)
    game.text_entities = [entity]
    assert game.parse_text_entity(entity) == "http://google.com"