vmalloc/pyforge — pull request #7 by yalon (2012-12-19 15:59:29+00:00)
Title: nested groups and whenevers

Support nested call groups (ordered and unordered), with nested whenevers so you can do stuff like:

```python

# We simulate here a stateful func that maintains the same state until we do "something", and then the state changes...
with self.forge.ordered():
my_stateful_func().when(1).and_return('spiderpig')
do_something_unrelated()
do_something_that_changes_the_state()

with self.forge.ordered():
my_stateful_func().when(1).and_return('flyingpig')
do_other_stuff()
do_more_other_stuff()
```