<s> """<STR_LIT>""" <EOL> import os <EOL> import plistlib <EOL> from util import with_app <EOL> from path import path <EOL> try : <EOL> read_plist = plistlib . load <EOL> except AttributeError : <EOL> read_plist = plistlib . readPlist <EOL> def check_structure ( outdir ) : <EOL> contentsdir = outdir / '<STR_LIT>' <EOL> assert contentsdir . isdir ( ) <EOL> assert ( contentsdir / '<STR_LIT>' ) . isfile ( ) <EOL> with open ( contentsdir / '<STR_LIT>' , '<STR_LIT:rb>' ) as f : <EOL> plist = read_plist ( f ) <EOL> assert plist <EOL> assert len ( plist ) <EOL> assert plist . get ( '<STR_LIT>' , None ) == '<STR_LIT>' <EOL> assert ( contentsdir / '<STR_LIT>' ) . isdir ( ) <EOL> assert ( contentsdir / '<STR_LIT>' / '<STR_LIT>' ) . isdir ( ) <EOL> def check_localization ( outdir ) : <EOL> lprojdir = outdir / '<STR_LIT>' / '<STR_LIT>' / '<STR_LIT>' <EOL> assert ( lprojdir / '<STR_LIT>' ) . isfile ( ) <EOL> @ with_app ( buildername = '<STR_LIT>' ) <EOL> def test_applehelp_output ( app , status , warning ) : <EOL> app . builder . build_all ( ) <EOL> bundle_path = path ( app . builder . bundle_path ) <EOL> check_structure ( bundle_path ) <EOL> check_localization ( bundle_path ) </s>
