Package: python-mock Version: 1.0.1-2 Severity: normal Tags: upstream This is expected mock.call behaviour:
>>> import mock >>> m = mock.MagicMock() >>> m.foo() <MagicMock name='mock.foo()' id='140538066053712'> >>> print m.mock_calls[0] == mock.call.foo() True This is not: >>> m = mock.MagicMock() >>> len(m) 0 >>> print m.mock_calls[0] == mock.call.__len__() False >>> print m.mock_calls[0], mock.call.__len__() call.__len__() 3 -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.10-rc7-amd64 (SMP w/4 CPU cores) Locale: LANG=en_NZ, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages python-mock depends on: ii python 2.7.5-2 python-mock recommends no packages. Versions of packages python-mock suggests: pn python-mock-doc <none> -- no debconf information -- .''`. martin f. krafft <madduck@d.o> Related projects: : :' : proud Debian developer http://debiansystem.info `. `'` http://people.debian.org/~madduck http://vcs-pkg.org `- Debian - when you have better things to do than fixing systems
digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)