Skip to content

Commit

Permalink
Fix test_get_snapshot() test
Browse files Browse the repository at this point in the history
  • Loading branch information
kk7ds committed Feb 14, 2016
1 parent 50e6829 commit fb1ae39
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fb1ae39

Please sign in to comment.