test_utils.py 231 B

123456789
  1. import pytest
  2. import PyPDF2.utils
  3. @pytest.mark.parametrize(
  4. "value,expected", [(0, True), (-1, True), (1, True), ("1", False), (1.5, False)]
  5. )
  6. def test_isInt(value, expected):
  7. assert PyPDF2.utils.isInt(value) == expected