Closed GoogleCodeExporter closed 9 years ago
This issue is actually a problem with nose. Details can be found in
http://code.google.com/p/python-
nose/issues/detail?id=236
The fix is in the trunk of the nose project
Please close this. Thank you
Original comment by K.Adam.C...@gmail.com
on 6 Mar 2009 at 12:02
Original comment by smidd...@gmail.com
on 20 Mar 2009 at 5:04
I got the same error(mox-0.5.3-py2.7):
======================================================================
FAIL: testGetCf (__main__.TestApiServer)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_api_server.py", line 58, in testGetCf
api_server.get_cf("testcf")
File "/home/pyw/work/demux/server/api_server.py", line 132, in get_cf
cfs[cf_str] = pycassa.ColumnFamily(data_db, cf_str)
File "/usr/local/lib/python2.7/dist-packages/mox-0.5.3-py2.7.egg/mox.py", line 765, in __call__
return mock_method(*params, **named_params)
File "/usr/local/lib/python2.7/dist-packages/mox-0.5.3-py2.7.egg/mox.py", line 1002, in __call__
expected_method = self._VerifyMethodCall()
File "/usr/local/lib/python2.7/dist-packages/mox-0.5.3-py2.7.egg/mox.py", line 1060, in _VerifyMethodCall
raise UnexpectedMethodCallError(self, expected)
UnexpectedMethodCallError: Unexpected method call. unexpected:- expected:+
- ColumnFamily.__call__('db', 'testcf') -> None
+ ColumnFamily.__call__() -> <__main__.ColumnFamilyMox instance at 0x919d2ec>
my code:
self.mox.StubOutWithMock(pycassa, 'ColumnFamily')
pycassa.ColumnFamily().AndReturn(ColumnFamilyMox())
pycassa.ColumnFamily('1','2').AndReturn(ColumnFamilyMox())
self.mox.ReplayAll()
api_server.data_db = 'db'
api_server.get_cf("testcf")
self.mox.VerifyAll()
Original comment by pengyu...@gmail.com
on 31 Mar 2012 at 10:33
Original issue reported on code.google.com by
K.Adam.C...@gmail.com
on 6 Mar 2009 at 3:10