'Test login with v3.1.x server.'

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

    self.nvr.server_version = (3, 1, 3)
    self.uvc._login()
    self.assertEqual(mock_camera.call_count, 1)
    self.assertEqual(mock_camera.call_args, mock.call('host-a', 'admin', 'seekret'))
    self.assertEqual(mock_camera.return_value.login.call_count, 1)
    self.assertEqual(mock_camera.return_value.login.call_args, mock.call())
