title: how to write testcases for yaml file using python
body: <p>Can someone help me writing the test case for yaml file using python.</p>
  
  <p>config.yaml</p>
  
  <p>Environment: dev</p>
  
  <pre><code>AthenaCred:
    AthenaDatabaseName: dap_cred
    AthenaTblName: athena_prod
    AwsSecretKey:  null
    AwsAccessKeyId: null
    S3StagingDir: 's3://aws-athena-query-results/'
    RegionName: 'us-east-1'
  </code></pre>
  
  <p>load_rule.yaml</p>
  
  <pre><code>Insert:
    - compute: 25:adobe:redshift
      entity: marketing
      group: '87:count'
      name: Test rule 1
      product: adobe
      query: SELECT count(*) "count" from public.dual
    - compute: 25:adobe:redshift
      entity: marketing
      group: '0:default'
      name: Test rule 2
      product: adobe
      query: SELECT count(*) from public.dual
  
  Delete:
    rule_id:
      - '107:test'
      - '2:test'
  </code></pre>