Check your understanding

Once you've decided on your answers to these questions, check them by writing a test document and running it through doctest:

  • How does doctest recognize the beginning of a test in a document?
  • How does doctest know when a test continues to further lines?
  • How does doctest recognize the beginning and end of the expected output of a test?
  • How would you tell doctest that you want to break the expected output across several lines, even though that's not how the test actually outputs it?
  • Which parts of an exception report are ignored by doctest?
  • When you assign a variable in a test file, which parts of the file can actually see that variable?
  • Why do we care what code can see the variables created by a test?
  • How can we make doctest not care what a section of output contains?
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.84.157