mirror of
https://github.com/fergalmoran/picard.git
synced 2025-12-26 19:29:01 +00:00
Don't use assert_called
It's only available in Python 3.6+
This commit is contained in:
@@ -32,7 +32,7 @@ class WebServiceTest(unittest.TestCase):
|
||||
handler = None
|
||||
data = None
|
||||
self.ws.get(host, port, path, handler)
|
||||
mock_add_task.assert_called()
|
||||
self.assertEqual(1, mock_add_task.call_count)
|
||||
self.assertIn(host, mock_add_task.call_args[0])
|
||||
self.assertIn(port, mock_add_task.call_args[0])
|
||||
self.assertIn("'GET'", repr(mock_add_task.call_args))
|
||||
|
||||
Reference in New Issue
Block a user