<s> import json <EOL> from appvalidator import validate_app , validate_packaged_app <EOL> from helper import safe <EOL> @ safe <EOL> def test_webapp_new ( ) : <EOL> """<STR_LIT>""" <EOL> with open ( "<STR_LIT>" ) as file_ : <EOL> out = validate_app ( file_ . read ( ) ) <EOL> j = json . loads ( out ) <EOL> assert j [ "<STR_LIT:success>" ] , "<STR_LIT>" % j <EOL> @ safe <EOL> def test_packaged_app_new ( ) : <EOL> """<STR_LIT>""" <EOL> out = validate_packaged_app ( "<STR_LIT>" , <EOL> listed = False ) <EOL> j = json . loads ( out ) <EOL> assert j [ "<STR_LIT:success>" ] , "<STR_LIT>" % j <EOL> @ safe <EOL> def test_packaged_app_bundle ( ) : <EOL> """<STR_LIT>""" <EOL> out = validate_packaged_app ( "<STR_LIT>" , <EOL> listed = False , format = None ) <EOL> assert out . get_resource ( "<STR_LIT>" ) <EOL> @ safe <EOL> def test_langpack ( ) : <EOL> """<STR_LIT>""" <EOL> out = validate_packaged_app ( "<STR_LIT>" , <EOL> listed = False ) <EOL> j = json . loads ( out ) <EOL> assert j [ "<STR_LIT:success>" ] , "<STR_LIT>" % j <EOL> @ safe <EOL> def test_langpack_bundle ( ) : <EOL> """<STR_LIT>""" <EOL> out = validate_packaged_app ( "<STR_LIT>" , <EOL> listed = False , format = None ) <EOL> assert out . get_resource ( "<STR_LIT>" ) <EOL> @ safe <EOL> def test_server_name_indication ( ) : <EOL> from requests . packages . urllib3 . contrib import pyopenssl </s>
