#NEWLINE# def test_with_values( self ) : #NEWLINE# #INDENT# test_dict = OrderedDict ( ( ( 'Field1' , None ) , ( '__something' , 'a string' ) , ( 'more' , 12345 ) , ( 'other' , 1.2344566 ) ) ) #NEWLINE# expected = '\n+-------------+-----------+\n| Field1      |      None |\n| __something |  a string |\n| more        |     12345 |\n| other       | 1.2344566 |\n+-------------+-----------+\n' . strip ( ) #NEWLINE# self . assertEqual ( gj2ascii . dict2table ( test_dict ) , expected )