'"Test the re-authentication.'

def test_camera_image_reauths(self):

    responses = [0]
    def fake_snapshot():
        'Fake    snapshot.'
        try:
            responses.pop()
            raise camera.CameraAuthError()
        except IndexError:
            pass
        return 'image'
    self.uvc._camera = mock.MagicMock()
    self.uvc._camera.get_snapshot.side_effect = fake_snapshot
    with mock.patch.object(self.uvc, '_login') as mock_login:
        self.assertEqual('image', self.uvc.camera_image())
        self.assertEqual(mock_login.call_count, 1)
        self.assertEqual(mock_login.call_args, mock.call())
        self.assertEqual([], responses)
