Given that you call caliendo.expected_value.is_equal_to with any given value, when you call it again with the exact same value and from the same place so that the stack trace remains the same, caliendo.expected_value.is_equal_to should not create a new ev but read the existing one.
>>> from caliendo import expected_value
>>> test_expected_value(value)
======================================================
test_expected_value (current test)
The expected value is stored in the variable 'ev'
modify it if need be, then quit the interpreter using
ctrl+d (not quit()) when you're satisfied.
======================================================
>>> ev
'hello world'
>>> ^D
======================================================
test_expected_value (current test)
The expected value is stored in the variable 'ev'
modify it if need be, then quit the interpreter using
ctrl+d (not quit()) when you're satisfied.
======================================================
>>> ev
'hello world'
>>> ^D
Given that you call
caliendo.expected_value.is_equal_to
with any given value, when you call it again with the exact same value and from the same place so that the stack trace remains the same,caliendo.expected_value.is_equal_to
should not create a newev
but read the existing one.