<s> import unittest <EOL> from ... utility import xl_col_to_name <EOL> class TestUtility ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def test_xl_col_to_name ( self ) : <EOL> """<STR_LIT>""" <EOL> tests = [ <EOL> ( <NUM_LIT:0> , '<STR_LIT:A>' ) , <EOL> ( <NUM_LIT:1> , '<STR_LIT:B>' ) , <EOL> ( <NUM_LIT:2> , '<STR_LIT:C>' ) , <EOL> ( <NUM_LIT:9> , '<STR_LIT>' ) , <EOL> ( <NUM_LIT> , '<STR_LIT:Y>' ) , <EOL> ( <NUM_LIT> , '<STR_LIT>' ) , <EOL> ( <NUM_LIT> , '<STR_LIT>' ) , <EOL> ( <NUM_LIT> , '<STR_LIT>' ) , <EOL> ( <NUM_LIT:255> , '<STR_LIT>' ) , <EOL> ( <NUM_LIT> , '<STR_LIT>' ) , <EOL> ( <NUM_LIT> , '<STR_LIT>' ) , <EOL> ( <NUM_LIT> , '<STR_LIT>' ) , <EOL> ] <EOL> for col , string in tests : <EOL> exp = string <EOL> got = xl_col_to_name ( col ) <EOL> self . assertEqual ( got , exp ) <EOL> def test_xl_col_to_name_abs ( self ) : <EOL> """<STR_LIT>""" <EOL> tests = [ <EOL> ( <NUM_LIT:0> , <NUM_LIT:1> , '<STR_LIT>' ) , <EOL> ] <EOL> for col , col_abs , string in tests : <EOL> exp = string <EOL> got = xl_col_to_name ( col , col_abs ) <EOL> self . assertEqual ( got , exp ) </s>
