I need to mock an Object that can be a number or None and test it with the is operator like this:
is
from unittest.mock import Mock mock = Mock(return_