Chapter 3
■
Unittest
57
Failing a Test
Many times, you might want to have a method that explicitly fails a test when it’s called. In
unittest, the fail() method is used for that purpose.
Check the code in Listing
3-17
as
an example.
Do'stlaringiz bilan baham: