File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -629,17 +629,61 @@ def test_tree(self):
629
629
| +-- baz[...]
630
630
+-- foo""" )
631
631
eq (sg1 , repr (g1 .tree ()))
632
+ hg1 = textwrap .dedent (u"""\
633
+ <div class="zarrTree">
634
+ <ul>
635
+ <li><div>/</div>
636
+ <ul>
637
+ <li><div>bar</div>
638
+ <ul>
639
+ <li><div>baz</div></li>
640
+ <li><div>quux</div>
641
+ <ul>
642
+ <li><div>baz[...]</div></li>
643
+ </ul>
644
+ </li>
645
+ </ul>
646
+ </li>
647
+ <li><div>foo</div></li>
648
+ </ul>
649
+ </li>
650
+ </ul>
651
+ </div>""" )
652
+ eq (hg1 , g1 .tree ()._repr_html_ ().split ("</style>" )[1 ].strip ())
632
653
633
654
sg2 = textwrap .dedent (u"""\
634
655
foo""" )
635
656
eq (sg2 , repr (g2 .tree ()))
657
+ hg2 = textwrap .dedent (u"""\
658
+ <div class="zarrTree">
659
+ <ul>
660
+ <li><div>foo</div></li>
661
+ </ul>
662
+ </div>""" )
663
+ eq (hg2 , g2 .tree ()._repr_html_ ().split ("</style>" )[1 ].strip ())
636
664
637
665
sg3 = textwrap .dedent (u"""\
638
666
bar
639
667
+-- baz
640
668
+-- quux
641
669
+-- baz[...]""" )
642
670
eq (sg3 , repr (g3 .tree ()))
671
+ hg3 = textwrap .dedent (u"""\
672
+ <div class="zarrTree">
673
+ <ul>
674
+ <li><div>bar</div>
675
+ <ul>
676
+ <li><div>baz</div></li>
677
+ <li><div>quux</div>
678
+ <ul>
679
+ <li><div>baz[...]</div></li>
680
+ </ul>
681
+ </li>
682
+ </ul>
683
+ </li>
684
+ </ul>
685
+ </div>""" )
686
+ eq (hg3 , g3 .tree ()._repr_html_ ().split ("</style>" )[1 ].strip ())
643
687
644
688
def test_empty_getitem_contains_iterators (self ):
645
689
# setup
You can’t perform that action at this time.
0 commit comments