<s> from aspectlib import test <EOL> class Foo ( object ) : <EOL> def bar ( self ) : <EOL> return <NUM_LIT:1> <EOL> def test_fixture_1 ( weave ) : <EOL> weave ( Foo . bar , test . mock ( <NUM_LIT:2> ) ) <EOL> assert Foo ( ) . bar ( ) == <NUM_LIT:2> <EOL> def test_fixture_2 ( weave ) : <EOL> assert Foo ( ) . bar ( ) == <NUM_LIT:1> <EOL> with weave ( Foo . bar , test . mock ( <NUM_LIT:2> ) ) : <EOL> assert Foo ( ) . bar ( ) == <NUM_LIT:2> <EOL> assert Foo ( ) . bar ( ) == <NUM_LIT:1> </s>
