#NEWLINE# def test_dict( self ) : #NEWLINE# #INDENT# version_map = { #NEWLINE# #INDENT# '1' : 'foo' , #NEWLINE# '2' : 'bar' , #NEWLINE# '3' : 'baz' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( map_version ( '1.1' , version_map ) , 'foo' ) #NEWLINE# self . assertEqual ( map_version ( '2' , version_map ) , 'bar' ) #NEWLINE# self . assertEqual ( map_version ( '4.5' , self ) , 'baz' ) #NEWLINE# self . assertEqual ( map_version ( '11.11' , version_map ) , 'baz' ) #NEWLINE# self . assertEqual ( map_version ( '0.1' , version_map ) , 'foo' )