
    x                         d dl Z d dlZd dlmZ e j                  j                  e j                  j                  e            Z G d dej                        Z	e
dk(  r ej                          yy)    N)testutilc                   *     e Zd Z fdZd Zd Z xZS )RuntimeTestc                 @    t         | _        t        t        |           y )N)RUNTIME_DEF_ROOTruntime_def_rootsuperr   setUp)self	__class__s    0platform/ext-runtime/custom/test/runtime_test.pyr
   zRuntimeTest.setUp   s    ,D	+t"$    c                 l    | j                  dd       | j                          | j                  dd       y )N
Dockerfileboring contentsapp.yamlenv: flex
runtime: custom
)
write_filegenerate_configs assert_file_exists_with_contentsr   s    r   test_custom_runtimezRuntimeTest.test_custom_runtime   s1    OOL"34))**HJr   c                 l    | j                  dd       | j                          | j                  dd       y)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_writez(RuntimeTest.test_custom_runtime_no_write   s1    OOL"34))&(r   )__name__
__module____qualname__r
   r   r   __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>r*      s\    
  $77??277??8#<= ((## (( z(--/ r   