#NEWLINE# def test_get_language_title( self ) : #NEWLINE# #INDENT# 'Test get_language_title utility function' #NEWLINE# language_code = 'en' #NEWLINE# self . assertEqual ( get_language_title ( language_code ) , 'English' ) #NEWLINE# language_code = 'xx' #NEWLINE# try : #NEWLINE# #INDENT# self . assertEqual ( get_language_title ( language_code ) , language_code ) #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# self . fail ( 'get_language_title() raises KeyError for missing language' )