'"Test if login fails properly.'

@mock.patch('uvcclient.store.get_info_store')
@mock.patch('uvcclient.camera.UVCCameraClientV320')
def test_login_fails_both_properly(self, mock_camera, mock_store):

    mock_camera.return_value.login.side_effect = socket.error
    self.assertEqual(None, self.uvc._login())
    self.assertEqual(None, self.uvc._connect_addr)
