diff options
-rw-r--r-- | Doc/library/unittest.mock.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst index 153dcab..8bb37dc 100644 --- a/Doc/library/unittest.mock.rst +++ b/Doc/library/unittest.mock.rst @@ -988,10 +988,10 @@ patch the decorated function: >>> @patch('__main__.SomeClass') - ... def function(mock_class): + ... def function(normal_argument, mock_class): ... print(mock_class is SomeClass) ... - >>> function() + >>> function(None) True Patching a class replaces the class with a `MagicMock` *instance*. If the |