File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -561,7 +561,15 @@ Python 3.
561561- 5 . You can reach into any object's __ dict__ attribute to view its internals.
562562
563563
564- ### [ ] ( )
564+ ### [ Item 56: Test everything with unittest] ( item_56_unittest.py )
565+ - 1 . The only way to have confidence in a Python program is to write tests.
566+ - 2 . The unittest built-in module provides most of the facilities you'll need
567+ to write good tests.
568+ - 3 . You can define tests by subclassing TestCase and defining one method per
569+ behavior you'd like to test. Test methods on TestCase classes must start
570+ with the word test.
571+ - 4 . It's important to write both unit tests (for isolated functionality) and
572+ integration tests (for modules that interact).
565573
566574
567575### [ ] ( )
You can’t perform that action at this time.
0 commit comments