code: def test_valid(self) -> None:
      prop0 = bcpn.Positive(Int)
  
      # TODO (bev) should fail
      assert prop0.is_valid(True)
  
      assert prop0.is_valid(1)
      assert prop0.is_valid(2)
      assert prop0.is_valid(100)
  
      prop1 = bcpn.Positive(Float)
  
      assert prop1.is_valid(1)
      assert prop1.is_valid(1.1)
  
imports: from __future__ import annotations
  import pytest
  from bokeh.core.properties import Float, Int
  from tests.support.util.api import verify_all
  from _util_property import _TestHasProps, _TestModel
  import bokeh.core.property.numeric
label_desc: Use image node_id 1 for calling the Test_PositiveInt obj's underlying member method code with example usage: obj.test_valid() without return types