Skip to content

Commit 0c05464

Browse files
committed
Add hyper-link for Item 56: Test everything with unittest
1 parent 64c51c7 commit 0c05464

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff 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
### []()

0 commit comments

Comments
 (0)