python unittest
import unittest
try:
from mock import Mock, patch, ANY
except ImportError:
from unittest.mock import Mock, patch, ANY
def test_mock(self):
# mock = MagicMock()
# mock(1, 2, 3)
# mock.assert_called_with(1, 2, 3)
import unittest
try:
from mock import Mock, patch, ANY
except ImportError:
from unittest.mock import Mock, patch, ANY
# mock = MagicMock()
# mock(1, 2, 3)
# mock.assert_called_with(1, 2, 3)