buzzfeed / caliendo

caliendo
MIT License
16 stars 5 forks source link

expected_value.is_equal_to not finding ev file #82

Open gerardo-orozco opened 10 years ago

gerardo-orozco commented 10 years ago

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