Module Expr Str ImportFrom alias alias alias Import alias ImportFrom alias alias ImportFrom alias Assign NameStore BinOpMult Str Num Assign NameStore BinOpMult Str Num Assign NameStore BinOpMult Str Num Assign NameStore ListLoad Dict Str Str Str BinOpMult Str Num BinOpMult Str Num BinOpMult Str Num Dict Str Str Str NameLoad NameLoad Str Dict Str Str Str Str Str NameLoad FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assert Call NameLoad NameLoad NameLoad Assert BoolOpOr Call NameLoad SubscriptLoad NameLoad Index Num NameLoad CompareIs SubscriptLoad NameLoad Index Num NameLoad Assert BoolOpOr Call NameLoad SubscriptLoad NameLoad Index Num NameLoad CompareIs SubscriptLoad NameLoad Index Num NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad NameLoad ListLoad Str Str Assert CompareEq Call AttributeLoad NameLoad attr Str BinOpAdd Call NameLoad NameLoad Num Assert CompareEq Call AttributeLoad NameLoad attr Str BinOpAdd Call NameLoad NameLoad Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad NameLoad ListLoad Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq SubscriptLoad NameLoad Index Str BinOpAdd Call NameLoad NameLoad Num Assert CompareEq SubscriptLoad NameLoad Index Str BinOpAdd Call NameLoad NameLoad Num Assert CompareEq SubscriptLoad NameLoad Index Str BinOpAdd Call NameLoad NameLoad Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad NameLoad ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str attr Num Num attr Assign NameStore ListLoad Dict Str Str Str Str Str Str Dict Str Str Str BinOpMult Str Num BinOpMult Str Num BinOpMult Str Num Assign NameStore Call NameLoad NameLoad ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr Str Assign NameStore Call AttributeLoad Str attr Str Assert CompareEq NameLoad NameLoad Assert CompareEq NameLoad NameLoad decorator_list
N/A N/A 
Copyright (c) 2015 Red Hat, Inc
All rights reserved.

This software may be modified and distributed under the terms
of the BSD license. See the LICENSE file for details.
 __future__ print_function absolute_import unicode_literals N/A osbs.cli.render osbs.cli.render TablePrinter get_terminal_size flexmock flexmock N/A LONGEST_VAL1 N/A l 10 N/A LONGEST_VAL2 N/A l 100 N/A LONGEST_VAL3 N/A l 80 N/A SAMPLE_DATA N/A N/A x y z N/A H 8 N/A H 20 N/A H 4 N/A x y z LONGEST_VAL1 LONGEST_VAL2 a N/A x y z zxc asdqwe LONGEST_VAL3 test_get_terminal_size N/A N/A N/A N/A N/A result N/A get_terminal_size N/A N/A isinstance result tuple N/A N/A N/A isinstance N/A result N/A 0 int N/A N/A result N/A 0 None N/A N/A N/A isinstance N/A result N/A 1 int N/A N/A result N/A 1 None N/A test_get_longest_val_in_col N/A N/A N/A N/A N/A p N/A TablePrinter SAMPLE_DATA N/A x y N/A N/A N/A N/A p _longest_val_in_column x N/A N/A len LONGEST_VAL1 2 N/A N/A N/A N/A p _longest_val_in_column y N/A N/A len LONGEST_VAL2 2 N/A test_get_longest_col_vals N/A N/A N/A N/A N/A p N/A TablePrinter SAMPLE_DATA N/A x y z N/A response N/A N/A p get_all_longest_col_lengths N/A N/A N/A response N/A x N/A N/A len LONGEST_VAL1 2 N/A N/A N/A response N/A y N/A N/A len LONGEST_VAL2 2 N/A N/A N/A response N/A z N/A N/A len LONGEST_VAL3 2 N/A test_print_table N/A N/A N/A N/A N/A p N/A TablePrinter SAMPLE_DATA N/A x y z N/A N/A N/A p render N/A test_print_table_with_mocked_terminal N/A N/A capsys N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A flexmock N/A N/A osbs cli render should_receive get_terminal_size and_return 25 80 once N/A short_data N/A N/A x y z Header1 Header2 Header3 N/A x y z N/A x 8 N/A y 20 N/A z 4 N/A p N/A TablePrinter short_data N/A x y z N/A N/A N/A p render N/A N/A out err N/A N/A capsys readouterr N/A expected_header N/A N/A 
 Header1               | Header2                          | Header3             
-----------------------+----------------------------------+---------------------
 lstrip N/A expected_data N/A N/A 
 xxxxxxxx              | yyyyyyyyyyyyyyyyyyyy             | zzzz                
 lstrip N/A N/A err expected_header N/A N/A out expected_data N/A