#NEWLINE# def test_non_translated_messages_gettext( qilinguist_action , record_messages ) : #NEWLINE# #INDENT# trad_project = qilinguist_action . trad #NEWLINE# qilinguist_action . create_po ( trad_project ) #NEWLINE# main_cpp = os . path . join ( trad_project . path , 'main.cpp' ) #NEWLINE# with open ( qilinguist_action , 'a' ) as fp : #NEWLINE# #INDENT# fp . write ( '\nchar* foo() {\n    return _("Hello, world");\n}\n' ) #NEWLINE# #UNINDENT# qilinguist_action ( 'update' , 'translate' ) #NEWLINE# qilinguist_action ( 'release' , 'translate' , raises = True ) #NEWLINE# assert record_messages . find ( 'untranslated' )