title: Pytest assert syntax and how to call yml file from pytest function
body: <p>This is how I code my unit test:</p>
  
  <pre><code>def test_valid_number():
    check = requests.get("http://testing/validateNumber/021844223")
    assert True
  
  def test_invalid_number():
    check = requests.get("http://testing/validateNumber/02188441")
    assert False 
  </code></pre>
  
  <p>My questions are:</p>
  
  <ol>
  <li><p>How to do assert (with pytest) correctly to check an API response? 
  The first function is to check valid number and it returns result:</p>
  
  <pre><code>{"header":[{"STUDENTNUM":"P56219","STUDENTNAME":"GOLDIE",..... }
  </code></pre></li>
  </ol>
  
  <p>The second function is to check invalid number with the expected return:</p>
  
  <pre><code>    {"header":[],"headercount":0,"offers":[]}
  </code></pre>
  
  <ol start="2">
  <li>Instead of coding the url and the student number manually. How can I create this in YAML and how to call the YAML file in my both functions.</li>
  </ol>