Hi Andreas,
Quoting Andreas Tille <[email protected]>:
I realise that there might be an incompatibility with the latest
python-mock version but I do not have any idea how to fix this.
this seems to be simply a case of a missing legacy method name in
python-mock. unittest.mock, which is part of Python (>=) 3.3 provides
assert_call_with() and assert_called_with() (the canonical name) but
python-mock only provides assert_called_with(). This causes the tests
to pass with Python (>=) 3.3 but lets them fail for Python 2.7.
See the attached patch for a solution.
Cheers, Michael
Index: python-hl7/tests/test_client.py
===================================================================
--- python-hl7.orig/tests/test_client.py 2015-08-15 19:29:07.582318436 +0200
+++ python-hl7/tests/test_client.py 2015-08-15 19:29:42.679034402 +0200
@@ -201,7 +201,7 @@
mllp_send()
self.assertFalse(self.mock_socket().send.called)
- self.mock_stderr().write.assert_call_with(
+ self.mock_stderr().write.assert_called_with(
'--loose requires --file\n'
)
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team