mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Merge
This commit is contained in:
commit
5d1f6c3b15
3 changed files with 9 additions and 0 deletions
|
@ -1182,6 +1182,10 @@ class MockTest(unittest.TestCase):
|
|||
func.mock_calls, [call(1, 2), call(3, 4)]
|
||||
)
|
||||
|
||||
#Issue21222
|
||||
def test_create_autospec_with_name(self):
|
||||
m = mock.create_autospec(object(), name='sweet_func')
|
||||
self.assertIn('sweet_func', repr(m))
|
||||
|
||||
def test_mock_add_spec(self):
|
||||
class _One(object):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue