Spec does not verify after exception raised by will_raise()

Bug #341071 reported by tim b
2
Affects Status Importance Assigned to Milestone
lancelot
Fix Committed
Undecided
tim b

Bug Description

value_error = ValueError("that's no ordinary rabbit")
mock_spec = MockSpec()
mock_call = mock_spec.foo().will_raise(value_error)
mock_call_result = mock_call.result_of('foo')
spec = Spec(mock_call_result)
spec.__call__().should_raise(value_error)
# check that after exception raised the collaboration is 'over'
Spec(mock_spec).verify().should_not_raise(UnmetSpecification)

Revision history for this message
tim b (prime8) wrote :

Fixed in revno 37, Tue 2009-02-24

Changed in lancelot:
assignee: nobody → prime8
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.