from unittest.mock import Mock

my_mock = Mock()
my_mock

my_mock = Mock(name="my_mock")
my_mock

my_mock.hello

my_mock()

my_mock.a_method(1, 2, 3)

from unittest.mock import Mock, MagicMock

my_magic_mock = MagicMock(name="my_magic_mock")

my_magic_mock + 1

my_magic_mock['hello']



c9a3870b4a543c7c1d9299e379ad6f1299ad6055
<mask token>

<mask token>
my_mock
<mask token>
my_mock
my_mock.hello
my_mock()
my_mock.a_method(1, 2, 3)
<mask token>
my_magic_mock + 1
my_magic_mock['hello']

<mask token>
my_mock = Mock()
my_mock
my_mock = Mock(name='my_mock')
my_mock
my_mock.hello
my_mock()
my_mock.a_method(1, 2, 3)
<mask token>
my_magic_mock = MagicMock(name='my_magic_mock')
my_magic_mock + 1
my_magic_mock['hello']

from unittest.mock import Mock
my_mock = Mock()
my_mock
my_mock = Mock(name='my_mock')
my_mock
my_mock.hello
my_mock()
my_mock.a_method(1, 2, 3)
from unittest.mock import Mock, MagicMock
my_magic_mock = MagicMock(name='my_magic_mock')
my_magic_mock + 1
my_magic_mock['hello']

from unittest.mock import Mock

my_mock = Mock()
my_mock

my_mock = Mock(name="my_mock")
my_mock

my_mock.hello

my_mock()

my_mock.a_method(1, 2, 3)

from unittest.mock import Mock, MagicMock

my_magic_mock = MagicMock(name="my_magic_mock")

my_magic_mock + 1

my_magic_mock['hello']


