
    x                         S SK r S SKrS SKJr  \ R                  R                  \ R                  R                  \5      5      r " S S\R                  5      r	\
S:X  a  \R                  " 5         gg)    N)testutilc                   4   ^  \ rS rSrU 4S jrS rS rSrU =r$ )RuntimeTest
   c                 @   > [         U l        [        [        U ]  5         g )N)RUNTIME_DEF_ROOTruntime_def_rootsuperr   setUp)self	__class__s    0platform/ext-runtime/custom/test/runtime_test.pyr   RuntimeTest.setUp   s    ,D	+t"$    c                 l    U R                  SS5        U R                  5         U R                  SS5        g )N
Dockerfileboring contentsapp.yamlenv: flex
runtime: custom
)
write_filegenerate_configs assert_file_exists_with_contentsr   s    r   test_custom_runtimeRuntimeTest.test_custom_runtime   s1    OOL"34))**HJr   c                 l    U R                  SS5        U R                  5         U R                  SS5        g)zFEnsure custom runtime writes app.yaml to disk with GenerateConfigData.r   r   r   r   N)r   generate_config_datar   r   s    r   test_custom_runtime_no_write(RuntimeTest.test_custom_runtime_no_write   s1    OOL"34))&(r   )r	   )	__name__
__module____qualname____firstlineno__r   r   r   __static_attributes____classcell__)r   s   @r   r   r   
   s    %J( (r   r   __main__)osunittestgae_ext_runtimer   pathdirname__file__r   TestBaser   r    main r   r   <module>r0      sZ    
  $77??277??8#<= ((## (( z
--/ r   