Exemplo n.º 1
0
 def test_index_label_widths_at_depth_b(self) -> None:
     idx1 = IndexGO(('a', 'b', 'c', 'd', 'e'))
     with self.assertRaises(RuntimeError):
         next(idx1.label_widths_at_depth(1))
Exemplo n.º 2
0
    def test_index_label_widths_at_depth_a(self) -> None:

        idx1 = IndexGO(('a', 'b', 'c', 'd', 'e'))
        self.assertEqual(tuple(idx1.label_widths_at_depth(0)),
                         (('a', 1), ('b', 1), ('c', 1), ('d', 1), ('e', 1)))