code: def test_assert_bools(self) -> None:
      hp = HasProps()
      p = bcpb.Property()
  
      p.asserts(True, "true")
      assert p.prepare_value(hp, "foo", 10) == 10
  
      p.asserts(False, "false")
      with pytest.raises(ValueError) as e:
          p.prepare_value(hp, "foo", 10)
          assert str(e) == "false"
  
imports: from __future__ import annotations
  import pytest
  from typing import Any
  from unittest.mock import MagicMock, patch
  import numpy
  import pandas
  from bokeh.core.has_props import HasProps
  from tests.support.util.api import verify_all
  from tests.support.util.types import Capture
  import bokeh.core.property.bases
label_desc: Use image node_id 3 for calling the TestProperty obj's underlying member method code with example usage: obj.test_assert_bools() without return types