How to use the termgraph.termgraph.find_max_label_length function in termgraph

To help you get started, we’ve selected a few termgraph examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mkaz / termgraph / tests / test_termgraph.py View on Github external
def test_find_max_label_length_returns_correct_length(self):
        length = tg.find_max_label_length(['2007', '2008', '2009', '2010', '2011',
                                        '2012', '2014'])
        assert length == 4
        length = tg.find_max_label_length(['aaaaaaaa', 'bbb', 'cccccccccccccc', 'z'])
        assert length == 14