From ccf1bddac16a3fa920bc073ed6a7412e3d2e00a8 Mon Sep 17 00:00:00 2001 From: Rob Smith Date: Mon, 19 Dec 2011 23:03:40 -0800 Subject: [PATCH] NameError: global name 'call' is not defined --- test/TestTCPCollector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/TestTCPCollector.py b/test/TestTCPCollector.py index 4e3641855..de672db32 100644 --- a/test/TestTCPCollector.py +++ b/test/TestTCPCollector.py @@ -35,8 +35,8 @@ def test_should_work_with_synthetic_data(self, publish_mock, open_mock): self.assertEqual(len(publish_mock.call_args_list), 2) self.assertEqual(publish_mock.call_args_list, [ - call('A', '0', 0), - call('C', '2', 0) + (('A', '0', 0), {}), + (('C', '2', 0), {}) ]) @patch.object(Collector, 'publish')