This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gregory.p.smith
Recipients gregory.p.smith
Date 2019-05-10.01:20:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1557451228.11.0.694440628534.issue36871@roundup.psfhosted.org>
In-reply-to
Content
Thing: <class '__main__.Thing'>
mock_thing.method sig=(a=None, b=0)
F
======================================================================
FAIL: test_has_calls_on_thing (__main__.MockCallTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/google/home/gps/mock_call_test.py", line 25, in test_has_calls_on_thing
    mock_thing.assert_has_calls([
  File "/usr/local/google/home/gps/oss/cpython/gpshead/Lib/unittest/mock.py", line 843, in assert_has_calls
    raise AssertionError(
AssertionError: Calls not found.
Expected: [call.method(0.5, b=3000), call.method(0.6, b=6000), call.method(0.7, b=9000)]
Actual: [call.method(0.5, b=3000), call.method(0.6, b=6000), call.method(0.7, b=9000)].

See the attached mock_call_test.py.
History
Date User Action Args
2019-05-10 01:20:28gregory.p.smithsetrecipients: + gregory.p.smith
2019-05-10 01:20:28gregory.p.smithsetmessageid: <1557451228.11.0.694440628534.issue36871@roundup.psfhosted.org>
2019-05-10 01:20:28gregory.p.smithlinkissue36871 messages
2019-05-10 01:20:27gregory.p.smithcreate