Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:38:22) [MSC v.1600 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> from my_html import HTMLNode, fparse >>> albero=fparse("page1-3.html") >>> albero.tag 'html' >>> albero.attr {} >>> albero.content [, , ] >>> albero.content[0] >>> albero.content[0].tag '_text_' >>> albero.content[2].tag '_text_' >>> albero.content[1].tag 'body' >>> body=albero.content[1] >>> body.tag 'body' >>> body.attr {} >>> body.content [, , , , , , , , ] >>> for i in body.content: print(i.tag) _text_ h1 _text_ p _text_ p _text_ img _text_ >>> def count_tag(dom, tag): if dom.tag == "_text_": return 0 res = 0 if dom.tag == tag: res +=1 for figlio in dom.content: res += count_tag(figlio, tag) return res >>> count_tag(albero, 'p') 2 >>> count_tag(albero, 'img') 1 >>> count_tag(albero, 'strong') 1 >>> count_tag(albero, 'stro') 0 >>> body >>> body.content[1] >>> body.content[1].tag 'h1' >>> h1=body.content[1].tag >>> h1=body.content[1] >>> h1.attr {'class': 'header title p2', 'id': 'intestazione'} >>> h1.content [] >>> h1.content[0] >>> h1.content[0].tag '_text_' >>> def count_attr(dom, attr): if dom.istext(): return 0 res=0 if attr in dom.attr: res+=1 for figlio in dom.content: res += count_attr(figlio, attr) return res >>> count_attr(dom, 'class') Traceback (most recent call last): File "", line 1, in count_attr(dom, 'class') NameError: name 'dom' is not defined >>> count_attr(albero, 'class') 3 >>> count_attr(albero, 'width') 1 >>> h1 >>> h1.attr {'class': 'header title p2', 'id': 'intestazione'} >>> {'class': 'header title p2', 'id': 'intestazione'} {'class': 'header title p2', 'id': 'intestazione'} >>> help (str.strip) Help on method_descriptor: strip(...) S.strip([chars]) -> str Return a copy of the string S with leading and trailing whitespace removed. If chars is given and not None, remove characters in chars instead. >>> ================================ RESTART ================================ >>> Recursion detected! in conta_matchCSS test_recursion_1 ok 15.600 ms Ricorsione nella funzione conta_nodi (usando il test Conto dei nodi con dato ID non esistente) test_recursion_2 Ricorsione nella funzione elimina_nodi (usando il test Eliminazione dei nodi di tipo 'p a') error -> Exception Recursion not present test_recursion_3 Ricorsione nella funzione cambia_attributo (usando il test Selezione di un 'p a' e cambio colore in rosso) error -> Exception Recursion not present test_program3_1 Conto dei nodi con dato ID non esistente error -> AttributeError 'str' object has no attribute 'istext' test_program3_2 Conto dei nodi con dato ID error -> AttributeError 'str' object has no attribute 'istext' test_program3_3 Conto dei nodi con dato tag error -> AttributeError 'str' object has no attribute 'istext' test_program3_4 Conto dei nodi con data class error -> AttributeError 'str' object has no attribute 'istext' test_program3_5 Conto dei nodi con dato attributo error -> AttributeError 'str' object has no attribute 'istext' test_program3_6 Conto dei nodi con relazione padre > figlio error -> AttributeError 'str' object has no attribute 'istext' test_program3_7 Conto dei nodi con relazione padre > figlio non esistente error -> AttributeError 'str' object has no attribute 'istext' test_program3_8 Conto dei nodi con relazione avo discendente error -> AttributeError 'str' object has no attribute 'istext' test_program3_9 Eliminazione dei nodi di tipo 'p a' error -> FileNotFoundError [Errno 2] No such file or directory: 'test9.html' test_program3_10 Selezione di un 'p a' e cambio colore in rosso error -> FileNotFoundError [Errno 2] No such file or directory: 'test10.html' test_program3_11 Selezione di un 'p a' e cambio colore in rosso error -> FileNotFoundError [Errno 2] No such file or directory: 'test11.html' test_program3_12 Eliminazione di tutti gli '@[class="container"] > .main-wrap #firehose > .row strong' error -> FileNotFoundError [Errno 2] No such file or directory: 'test12.html' test_program3_13 Sfondo rosso a tutti gli '#slashdot_deals-title' error -> FileNotFoundError [Errno 2] No such file or directory: 'test13.html' test_program3_14 Conteggio degli '@[id="slashboxes"] > article h2 > a' error -> NameError name 'name2codepoint' is not defined Total score: 3.0 >>> ================================ RESTART ================================ >>> Recursion detected! in conta_matchCSS test_recursion_1 ok 62.400 ms Ricorsione nella funzione conta_nodi (usando il test Conto dei nodi con dato ID non esistente) test_recursion_2 Ricorsione nella funzione elimina_nodi (usando il test Eliminazione dei nodi di tipo 'p a') error -> Exception Recursion not present test_recursion_3 Ricorsione nella funzione cambia_attributo (usando il test Selezione di un 'p a' e cambio colore in rosso) error -> Exception Recursion not present test_program3_1 Conto dei nodi con dato ID non esistente error -> AttributeError 'str' object has no attribute 'tag' test_program3_2 Conto dei nodi con dato ID error -> AttributeError 'str' object has no attribute 'tag' test_program3_3 Conto dei nodi con dato tag error -> AttributeError 'str' object has no attribute 'tag' test_program3_4 Conto dei nodi con data class error -> AttributeError 'str' object has no attribute 'tag' test_program3_5 Conto dei nodi con dato attributo error -> AttributeError 'str' object has no attribute 'tag' test_program3_6 Conto dei nodi con relazione padre > figlio error -> AttributeError 'str' object has no attribute 'tag' test_program3_7 Conto dei nodi con relazione padre > figlio non esistente error -> AttributeError 'str' object has no attribute 'tag' test_program3_8 Conto dei nodi con relazione avo discendente error -> AttributeError 'str' object has no attribute 'tag' test_program3_9 Eliminazione dei nodi di tipo 'p a' error -> FileNotFoundError [Errno 2] No such file or directory: 'test9.html' test_program3_10 Selezione di un 'p a' e cambio colore in rosso error -> FileNotFoundError [Errno 2] No such file or directory: 'test10.html' test_program3_11 Selezione di un 'p a' e cambio colore in rosso error -> FileNotFoundError [Errno 2] No such file or directory: 'test11.html' test_program3_12 Eliminazione di tutti gli '@[class="container"] > .main-wrap #firehose > .row strong' error -> FileNotFoundError [Errno 2] No such file or directory: 'test12.html' test_program3_13 Sfondo rosso a tutti gli '#slashdot_deals-title' error -> FileNotFoundError [Errno 2] No such file or directory: 'test13.html' test_program3_14 Conteggio degli '@[id="slashboxes"] > article h2 > a' error -> NameError name 'name2codepoint' is not defined Total score: 3.0 >>> ================================ RESTART ================================ >>> Recursion detected! in conta_matchCSS test_recursion_1 ok 0.000 ms Ricorsione nella funzione conta_nodi (usando il test Conto dei nodi con dato ID non esistente) test_recursion_2 Ricorsione nella funzione elimina_nodi (usando il test Eliminazione dei nodi di tipo 'p a') error -> Exception Recursion not present test_recursion_3 Ricorsione nella funzione cambia_attributo (usando il test Selezione di un 'p a' e cambio colore in rosso) error -> Exception Recursion not present test_program3_1 ok 0.000 ms Conto dei nodi con dato ID non esistente test_program3_2 ok 0.000 ms Conto dei nodi con dato ID test_program3_3 ok 0.000 ms Conto dei nodi con dato tag test_program3_4 ok 0.000 ms Conto dei nodi con data class test_program3_5 ok 0.000 ms Conto dei nodi con dato attributo test_program3_6 Conto dei nodi con relazione padre > figlio error -> AssertionError when input=('page1-3.html', 'p > em') 0 != 1 test_program3_7 ok 0.000 ms Conto dei nodi con relazione padre > figlio non esistente test_program3_8 ok 0.000 ms Conto dei nodi con relazione avo discendente test_program3_9 Eliminazione dei nodi di tipo 'p a' error -> FileNotFoundError [Errno 2] No such file or directory: 'test9.html' test_program3_10 Selezione di un 'p a' e cambio colore in rosso error -> FileNotFoundError [Errno 2] No such file or directory: 'test10.html' test_program3_11 Selezione di un 'p a' e cambio colore in rosso error -> FileNotFoundError [Errno 2] No such file or directory: 'test11.html' test_program3_12 Eliminazione di tutti gli '@[class="container"] > .main-wrap #firehose > .row strong' error -> FileNotFoundError [Errno 2] No such file or directory: 'test12.html' test_program3_13 Sfondo rosso a tutti gli '#slashdot_deals-title' error -> FileNotFoundError [Errno 2] No such file or directory: 'test13.html' test_program3_14 Conteggio degli '@[id="slashboxes"] > article h2 > a' error -> NameError name 'name2codepoint' is not defined Total score: 10.0 >>> ================================ RESTART ================================ >>> Recursion detected! in conta_matchCSS test_recursion_1 ok 93.600 ms Ricorsione nella funzione conta_nodi (usando il test Conto dei nodi con dato ID non esistente) test_recursion_2 Ricorsione nella funzione elimina_nodi (usando il test Eliminazione dei nodi di tipo 'p a') error -> Exception Recursion not present test_recursion_3 Ricorsione nella funzione cambia_attributo (usando il test Selezione di un 'p a' e cambio colore in rosso) error -> Exception Recursion not present test_program3_1 ok 0.000 ms Conto dei nodi con dato ID non esistente test_program3_2 ok 0.000 ms Conto dei nodi con dato ID test_program3_3 ok 0.000 ms Conto dei nodi con dato tag test_program3_4 ok 0.000 ms Conto dei nodi con data class test_program3_5 ok 0.000 ms Conto dei nodi con dato attributo test_program3_6 Conto dei nodi con relazione padre > figlio error -> AssertionError when input=('page1-3.html', 'p > em') 0 != 1 test_program3_7 ok 0.000 ms Conto dei nodi con relazione padre > figlio non esistente test_program3_8 ok 0.000 ms Conto dei nodi con relazione avo discendente test_program3_9 Eliminazione dei nodi di tipo 'p a' error -> FileNotFoundError [Errno 2] No such file or directory: 'test9.html' test_program3_10 Selezione di un 'p a' e cambio colore in rosso error -> FileNotFoundError [Errno 2] No such file or directory: 'test10.html' test_program3_11 Selezione di un 'p a' e cambio colore in rosso error -> FileNotFoundError [Errno 2] No such file or directory: 'test11.html' test_program3_12 Eliminazione di tutti gli '@[class="container"] > .main-wrap #firehose > .row strong' error -> FileNotFoundError [Errno 2] No such file or directory: 'test12.html' test_program3_13 Sfondo rosso a tutti gli '#slashdot_deals-title' error -> FileNotFoundError [Errno 2] No such file or directory: 'test13.html' test_program3_14 Conteggio degli '@[id="slashboxes"] > article h2 > a' error -> NameError name 'name2codepoint' is not defined Total score: 10.0 >>> ================================ RESTART ================================ >>> Recursion detected! in conta_matchCSS test_recursion_1 ok 15.600 ms Ricorsione nella funzione conta_nodi (usando il test Conto dei nodi con dato ID non esistente) test_recursion_2 Ricorsione nella funzione elimina_nodi (usando il test Eliminazione dei nodi di tipo 'p a') error -> Exception Recursion not present test_recursion_3 Ricorsione nella funzione cambia_attributo (usando il test Selezione di un 'p a' e cambio colore in rosso) error -> Exception Recursion not present test_program3_1 ok 0.000 ms Conto dei nodi con dato ID non esistente test_program3_2 ok 0.000 ms Conto dei nodi con dato ID test_program3_3 ok 0.000 ms Conto dei nodi con dato tag test_program3_4 ok 0.000 ms Conto dei nodi con data class test_program3_5 ok 0.000 ms Conto dei nodi con dato attributo test_program3_6 Conto dei nodi con relazione padre > figlio error -> AssertionError when input=('page1-3.html', 'p > em') 0 != 1 test_program3_7 ok 0.000 ms Conto dei nodi con relazione padre > figlio non esistente test_program3_8 ok 0.000 ms Conto dei nodi con relazione avo discendente test_program3_9 Eliminazione dei nodi di tipo 'p a' error -> FileNotFoundError [Errno 2] No such file or directory: 'test9.html' test_program3_10 Selezione di un 'p a' e cambio colore in rosso error -> FileNotFoundError [Errno 2] No such file or directory: 'test10.html' test_program3_11 Selezione di un 'p a' e cambio colore in rosso error -> FileNotFoundError [Errno 2] No such file or directory: 'test11.html' test_program3_12 Eliminazione di tutti gli '@[class="container"] > .main-wrap #firehose > .row strong' error -> FileNotFoundError [Errno 2] No such file or directory: 'test12.html' test_program3_13 Sfondo rosso a tutti gli '#slashdot_deals-title' error -> FileNotFoundError [Errno 2] No such file or directory: 'test13.html' test_program3_14 Conteggio degli '@[id="slashboxes"] > article h2 > a' error -> NameError name 'name2codepoint' is not defined Total score: 10.0 >>> ================================ RESTART ================================ >>> Recursion detected! in conta_matchCSS test_recursion_1 ok 15.600 ms Ricorsione nella funzione conta_nodi (usando il test Conto dei nodi con dato ID non esistente) test_recursion_2 Ricorsione nella funzione elimina_nodi (usando il test Eliminazione dei nodi di tipo 'p a') error -> Exception Recursion not present test_recursion_3 Ricorsione nella funzione cambia_attributo (usando il test Selezione di un 'p a' e cambio colore in rosso) error -> Exception Recursion not present test_program3_1 ok 0.000 ms Conto dei nodi con dato ID non esistente test_program3_2 ok 0.000 ms Conto dei nodi con dato ID test_program3_3 ok 0.000 ms Conto dei nodi con dato tag test_program3_4 ok 0.000 ms Conto dei nodi con data class test_program3_5 ok 0.000 ms Conto dei nodi con dato attributo test_program3_6 ok 0.000 ms Conto dei nodi con relazione padre > figlio test_program3_7 ok 0.000 ms Conto dei nodi con relazione padre > figlio non esistente test_program3_8 ok 0.000 ms Conto dei nodi con relazione avo discendente test_program3_9 Eliminazione dei nodi di tipo 'p a' error -> FileNotFoundError [Errno 2] No such file or directory: 'test9.html' test_program3_10 Selezione di un 'p a' e cambio colore in rosso error -> FileNotFoundError [Errno 2] No such file or directory: 'test10.html' test_program3_11 Selezione di un 'p a' e cambio colore in rosso error -> FileNotFoundError [Errno 2] No such file or directory: 'test11.html' test_program3_12 Eliminazione di tutti gli '@[class="container"] > .main-wrap #firehose > .row strong' error -> FileNotFoundError [Errno 2] No such file or directory: 'test12.html' test_program3_13 Sfondo rosso a tutti gli '#slashdot_deals-title' error -> FileNotFoundError [Errno 2] No such file or directory: 'test13.html' test_program3_14 Conteggio degli '@[id="slashboxes"] > article h2 > a' error -> NameError name 'name2codepoint' is not defined Total score: 11.0 >>> conta Traceback (most recent call last): File "", line 1, in conta NameError: name 'conta' is not defined >>> program03.conta_nodi('slashdot.html', '@[id="slashboxes"] > article h2 > a') Traceback (most recent call last): File "", line 1, in program03.conta_nodi('slashdot.html', '@[id="slashboxes"] > article h2 > a') File "C:\Users\Studente\Documents\homework04\es3\program03.py", line 48, in conta_nodi radice = fparse(fileIn) File "C:\Users\Studente\Documents\homework04\es3\my_html.py", line 131, in fparse root = parse(f.read()) File "C:\Users\Studente\Documents\homework04\es3\my_html.py", line 124, in parse parser.feed(html) File "C:\Python34\lib\html\parser.py", line 165, in feed self.goahead(0) File "C:\Python34\lib\html\parser.py", line 275, in goahead self.handle_entityref(name) File "C:\Users\Studente\Documents\homework04\es3\my_html.py", line 100, in handle_entityref if name in name2codepoint: NameError: name 'name2codepoint' is not defined >>> ================================ RESTART ================================ >>> Recursion detected! in conta_matchCSS test_recursion_1 ok 0.000 ms Ricorsione nella funzione conta_nodi (usando il test Conto dei nodi con dato ID non esistente) test_recursion_2 Ricorsione nella funzione elimina_nodi (usando il test Eliminazione dei nodi di tipo 'p a') error -> Exception Recursion not present test_recursion_3 Ricorsione nella funzione cambia_attributo (usando il test Selezione di un 'p a' e cambio colore in rosso) error -> Exception Recursion not present test_program3_1 ok 0.000 ms Conto dei nodi con dato ID non esistente test_program3_2 ok 0.000 ms Conto dei nodi con dato ID test_program3_3 ok 0.000 ms Conto dei nodi con dato tag test_program3_4 ok 0.000 ms Conto dei nodi con data class test_program3_5 ok 0.000 ms Conto dei nodi con dato attributo test_program3_6 ok 15.600 ms Conto dei nodi con relazione padre > figlio test_program3_7 ok 0.000 ms Conto dei nodi con relazione padre > figlio non esistente test_program3_8 ok 0.000 ms Conto dei nodi con relazione avo discendente test_program3_9 Eliminazione dei nodi di tipo 'p a' error -> FileNotFoundError [Errno 2] No such file or directory: 'test9.html' test_program3_10 Selezione di un 'p a' e cambio colore in rosso error -> FileNotFoundError [Errno 2] No such file or directory: 'test10.html' test_program3_11 Selezione di un 'p a' e cambio colore in rosso error -> FileNotFoundError [Errno 2] No such file or directory: 'test11.html' test_program3_12 Eliminazione di tutti gli '@[class="container"] > .main-wrap #firehose > .row strong' error -> FileNotFoundError [Errno 2] No such file or directory: 'test12.html' test_program3_13 Sfondo rosso a tutti gli '#slashdot_deals-title' error -> FileNotFoundError [Errno 2] No such file or directory: 'test13.html' test_program3_14 Conteggio degli '@[id="slashboxes"] > article h2 > a' error -> NameError name 'name2codepoint' is not defined Total score: 11.0 >>> program03.conta_nodi('slashdot.html', '@[id="slashboxes"] > article h2 > a') Traceback (most recent call last): File "", line 1, in program03.conta_nodi('slashdot.html', '@[id="slashboxes"] > article h2 > a') File "C:\Users\Studente\Documents\homework04\es3\program03.py", line 48, in conta_nodi radice = fparse(fileIn) File "C:\Users\Studente\Documents\homework04\es3\my_html.py", line 130, in fparse root = parse(f.read()) File "C:\Users\Studente\Documents\homework04\es3\my_html.py", line 123, in parse parser.feed(html) File "C:\Python34\lib\html\parser.py", line 165, in feed self.goahead(0) File "C:\Python34\lib\html\parser.py", line 275, in goahead self.handle_entityref(name) File "C:\Users\Studente\Documents\homework04\es3\my_html.py", line 99, in handle_entityref if name in name2codepoint: NameError: name 'name2codepoint' is not defined >>> ================================ RESTART ================================ >>> Recursion detected! in conta_matchCSS test_recursion_1 ok 0.000 ms Ricorsione nella funzione conta_nodi (usando il test Conto dei nodi con dato ID non esistente) test_recursion_2 Ricorsione nella funzione elimina_nodi (usando il test Eliminazione dei nodi di tipo 'p a') error -> Exception Recursion not present test_recursion_3 Ricorsione nella funzione cambia_attributo (usando il test Selezione di un 'p a' e cambio colore in rosso) error -> Exception Recursion not present test_program3_1 ok 0.000 ms Conto dei nodi con dato ID non esistente test_program3_2 ok 0.000 ms Conto dei nodi con dato ID test_program3_3 ok 15.600 ms Conto dei nodi con dato tag test_program3_4 ok 0.000 ms Conto dei nodi con data class test_program3_5 ok 0.000 ms Conto dei nodi con dato attributo test_program3_6 ok 0.000 ms Conto dei nodi con relazione padre > figlio test_program3_7 ok 0.000 ms Conto dei nodi con relazione padre > figlio non esistente test_program3_8 ok 0.000 ms Conto dei nodi con relazione avo discendente test_program3_9 Eliminazione dei nodi di tipo 'p a' error -> FileNotFoundError [Errno 2] No such file or directory: 'test9.html' test_program3_10 Selezione di un 'p a' e cambio colore in rosso error -> FileNotFoundError [Errno 2] No such file or directory: 'test10.html' test_program3_11 Selezione di un 'p a' e cambio colore in rosso error -> FileNotFoundError [Errno 2] No such file or directory: 'test11.html' test_program3_12 Eliminazione di tutti gli '@[class="container"] > .main-wrap #firehose > .row strong' error -> FileNotFoundError [Errno 2] No such file or directory: 'test12.html' test_program3_13 Sfondo rosso a tutti gli '#slashdot_deals-title' error -> FileNotFoundError [Errno 2] No such file or directory: 'test13.html' test_program3_14 Conteggio degli '@[id="slashboxes"] > article h2 > a' error -> NameError name 'unichr' is not defined Total score: 11.0 >>> unichrNameError: name 'name2codepoint' is not defined SyntaxError: invalid syntax >>> unichr() Traceback (most recent call last): File "", line 1, in unichr() NameError: name 'unichr' is not defined >>> ================================ RESTART ================================ >>> Recursion detected! in conta_matchCSS test_recursion_1 ok 62.400 ms Ricorsione nella funzione conta_nodi (usando il test Conto dei nodi con dato ID non esistente) test_recursion_2 Ricorsione nella funzione elimina_nodi (usando il test Eliminazione dei nodi di tipo 'p a') error -> Exception Recursion not present test_recursion_3 Ricorsione nella funzione cambia_attributo (usando il test Selezione di un 'p a' e cambio colore in rosso) error -> Exception Recursion not present test_program3_1 ok 0.000 ms Conto dei nodi con dato ID non esistente test_program3_2 ok 0.000 ms Conto dei nodi con dato ID test_program3_3 ok 0.000 ms Conto dei nodi con dato tag test_program3_4 ok 0.000 ms Conto dei nodi con data class test_program3_5 ok 0.000 ms Conto dei nodi con dato attributo test_program3_6 ok 0.000 ms Conto dei nodi con relazione padre > figlio test_program3_7 ok 0.000 ms Conto dei nodi con relazione padre > figlio non esistente test_program3_8 ok 0.000 ms Conto dei nodi con relazione avo discendente test_program3_9 Eliminazione dei nodi di tipo 'p a' error -> FileNotFoundError [Errno 2] No such file or directory: 'test9.html' test_program3_10 Selezione di un 'p a' e cambio colore in rosso error -> FileNotFoundError [Errno 2] No such file or directory: 'test10.html' test_program3_11 Selezione di un 'p a' e cambio colore in rosso error -> FileNotFoundError [Errno 2] No such file or directory: 'test11.html' test_program3_12 Eliminazione di tutti gli '@[class="container"] > .main-wrap #firehose > .row strong' error -> FileNotFoundError [Errno 2] No such file or directory: 'test12.html' test_program3_13 Sfondo rosso a tutti gli '#slashdot_deals-title' error -> FileNotFoundError [Errno 2] No such file or directory: 'test13.html' test_program3_14 ok 78.000 ms Conteggio degli '@[id="slashboxes"] > article h2 > a' Total score: 12.0 >>> albero Traceback (most recent call last): File "", line 1, in albero NameError: name 'albero' is not defined >>> ================================ RESTART ================================ >>> Recursion detected! in conta_matchCSS test_recursion_1 ok 0.000 ms Ricorsione nella funzione conta_nodi (usando il test Conto dei nodi con dato ID non esistente) Recursion detected! in elimina_matchCSS test_recursion_2 ok 0.000 ms Ricorsione nella funzione elimina_nodi (usando il test Eliminazione dei nodi di tipo 'p a') test_recursion_3 Ricorsione nella funzione cambia_attributo (usando il test Selezione di un 'p a' e cambio colore in rosso) error -> Exception Recursion not present test_program3_1 ok 0.000 ms Conto dei nodi con dato ID non esistente test_program3_2 ok 0.000 ms Conto dei nodi con dato ID test_program3_3 ok 0.000 ms Conto dei nodi con dato tag test_program3_4 ok 0.000 ms Conto dei nodi con data class test_program3_5 ok 0.000 ms Conto dei nodi con dato attributo test_program3_6 ok 0.000 ms Conto dei nodi con relazione padre > figlio test_program3_7 ok 0.000 ms Conto dei nodi con relazione padre > figlio non esistente test_program3_8 ok 0.000 ms Conto dei nodi con relazione avo discendente test_program3_9 ok 0.000 ms Eliminazione dei nodi di tipo 'p a' test_program3_10 Selezione di un 'p a' e cambio colore in rosso error -> FileNotFoundError [Errno 2] No such file or directory: 'test10.html' test_program3_11 Selezione di un 'p a' e cambio colore in rosso error -> FileNotFoundError [Errno 2] No such file or directory: 'test11.html' test_program3_12 Eliminazione di tutti gli '@[class="container"] > .main-wrap #firehose > .row strong' error -> UnicodeDecodeError 'utf-8' codec can't decode byte 0xa0 in position 6769: invalid start byte test_program3_13 Sfondo rosso a tutti gli '#slashdot_deals-title' error -> FileNotFoundError [Errno 2] No such file or directory: 'test13.html' test_program3_14 ok 62.400 ms Conteggio degli '@[id="slashboxes"] > article h2 > a' Total score: 16.0 >>> ================================ RESTART ================================ >>> Recursion detected! in conta_matchCSS test_recursion_1 ok 62.400 ms Ricorsione nella funzione conta_nodi (usando il test Conto dei nodi con dato ID non esistente) Recursion detected! in elimina_matchCSS test_recursion_2 ok 0.000 ms Ricorsione nella funzione elimina_nodi (usando il test Eliminazione dei nodi di tipo 'p a') test_recursion_3 Ricorsione nella funzione cambia_attributo (usando il test Selezione di un 'p a' e cambio colore in rosso) error -> NameError name 'unichr' is not defined test_program3_1 ok 0.000 ms Conto dei nodi con dato ID non esistente test_program3_2 ok 0.000 ms Conto dei nodi con dato ID test_program3_3 ok 0.000 ms Conto dei nodi con dato tag test_program3_4 ok 0.000 ms Conto dei nodi con data class test_program3_5 ok 0.000 ms Conto dei nodi con dato attributo test_program3_6 ok 0.000 ms Conto dei nodi con relazione padre > figlio test_program3_7 ok 0.000 ms Conto dei nodi con relazione padre > figlio non esistente test_program3_8 ok 0.000 ms Conto dei nodi con relazione avo discendente test_program3_9 ok 0.000 ms Eliminazione dei nodi di tipo 'p a' test_program3_10 ok 0.000 ms Selezione di un 'p a' e cambio colore in rosso test_program3_11 Selezione di un 'p a' e cambio colore in rosso error -> NameError name 'unichr' is not defined test_program3_12 Eliminazione di tutti gli '@[class="container"] > .main-wrap #firehose > .row strong' error -> UnicodeDecodeError 'utf-8' codec can't decode byte 0xa0 in position 6769: invalid start byte test_program3_13 Sfondo rosso a tutti gli '#slashdot_deals-title' error -> UnicodeDecodeError 'utf-8' codec can't decode byte 0xa0 in position 6769: invalid start byte test_program3_14 ok 62.401 ms Conteggio degli '@[id="slashboxes"] > article h2 > a' Total score: 17.0 >>> ================================ RESTART ================================ >>> Recursion detected! in conta_matchCSS test_recursion_1 ok 62.400 ms Ricorsione nella funzione conta_nodi (usando il test Conto dei nodi con dato ID non esistente) Recursion detected! in elimina_matchCSS test_recursion_2 ok 0.000 ms Ricorsione nella funzione elimina_nodi (usando il test Eliminazione dei nodi di tipo 'p a') Recursion detected! in cambia_matchCSS test_recursion_3 ok 109.200 ms Ricorsione nella funzione cambia_attributo (usando il test Selezione di un 'p a' e cambio colore in rosso) test_program3_1 ok 0.000 ms Conto dei nodi con dato ID non esistente test_program3_2 ok 0.000 ms Conto dei nodi con dato ID test_program3_3 ok 0.000 ms Conto dei nodi con dato tag test_program3_4 ok 0.000 ms Conto dei nodi con data class test_program3_5 ok 0.000 ms Conto dei nodi con dato attributo test_program3_6 ok 0.000 ms Conto dei nodi con relazione padre > figlio test_program3_7 ok 0.000 ms Conto dei nodi con relazione padre > figlio non esistente test_program3_8 ok 0.000 ms Conto dei nodi con relazione avo discendente test_program3_9 ok 0.000 ms Eliminazione dei nodi di tipo 'p a' test_program3_10 ok 0.000 ms Selezione di un 'p a' e cambio colore in rosso test_program3_11 Selezione di un 'p a' e cambio colore in rosso error -> UnicodeEncodeError 'charmap' codec can't encode character '\u25bc' in position 5440: character maps to test_program3_12 Eliminazione di tutti gli '@[class="container"] > .main-wrap #firehose > .row strong' error -> UnicodeDecodeError 'utf-8' codec can't decode byte 0xa0 in position 6769: invalid start byte test_program3_13 Sfondo rosso a tutti gli '#slashdot_deals-title' error -> UnicodeDecodeError 'utf-8' codec can't decode byte 0xa0 in position 6769: invalid start byte test_program3_14 ok 62.401 ms Conteggio degli '@[id="slashboxes"] > article h2 > a' Total score: 20.0 >>>