Failing test due to assert_called_once()
Status: Beta
Brought to you by:
whitemice
Did something change with Mock? this test is failing, but the failure appears to be related to the signature of asset_called_once
======================================================================
ERROR: test_fallback_to_copy_mode (tests.BLOBEventDocumentBurst)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/srv/projects/coils-code.git/lib/python2.7/site-packages/mock/mock.py", line 1330, in patched
return func(*args, **keywargs)
File "/home/awilliam/projects/coils-code.git/tests/blob_event_burst.py", line 236, in test_fallback_to_copy_mode
copy_to_mock.assert_called_once(copy_to_mock)
TypeError: assert_called_once() takes exactly 1 argument (2 given)
-------------------- >> begin captured logging << --------------------
context: DEBUG: Context 2a901e48cf6d4686bf415480a8fe95e5 created
context: DEBUG: AMQ broker not available in context.
context: INFO: User agent 148c9d0d669648ed8b8ed0292df478fd [default] select for context (Agent: "None")
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_fallback_to_copy_mode_not (tests.BLOBEventDocumentBurst)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/srv/projects/coils-code.git/lib/python2.7/site-packages/mock/mock.py", line 1330, in patched
return func(*args, **keywargs)
File "/home/awilliam/projects/coils-code.git/tests/blob_event_burst.py", line 279, in test_fallback_to_copy_mode_not
copy_to_mock.assert_called_once(copy_to_mock)
TypeError: assert_called_once() takes exactly 1 argument (2 given)
-------------------- >> begin captured logging << --------------------
context: DEBUG: Context 77020bc9cb88409c9117d39447871368 created
context: DEBUG: AMQ broker not available in context.
context: INFO: User agent 148c9d0d669648ed8b8ed0292df478fd [default] select for context (Agent: "None")
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------