- from unittest.mock import patch
- @patch.object(SomeClass, 'method')
- @patch('module.datetime')
- def mock_method(): pass