From fb1ae391bee439e7daa12c3b3e48bab28071ce26 Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Sun, 14 Feb 2016 09:14:17 -0800 Subject: [PATCH] Fix test_get_snapshot() test --- tests/test_camera.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_camera.py b/tests/test_camera.py index 7c8e581..7865f93 100644 --- a/tests/test_camera.py +++ b/tests/test_camera.py @@ -27,6 +27,7 @@ def test_get_snapshot(self): c = camera.UVCCameraClient('foo', 'ubnt', 'ubnt') with mock.patch.object(httplib, 'HTTPConnection') as mock_conn: conn = mock_conn.return_value + conn.getresponse.return_value.status = 200 r = c.get_snapshot() self.assertEquals(conn.getresponse.return_value.read.return_value, r)