<s> from nose2 . tools import such <EOL> with such . A ( '<STR_LIT>' ) as it : <EOL> @ it . has_setup <EOL> def setup ( ) : <EOL> it . things = [ <NUM_LIT:1> ] <EOL> @ it . has_teardown <EOL> def teardown ( ) : <EOL> it . things = [ ] <EOL> @ it . should ( '<STR_LIT>' ) <EOL> def test ( ) : <EOL> assert it . things <EOL> it . assertEqual ( len ( it . things ) , <NUM_LIT:1> ) <EOL> with it . having ( '<STR_LIT>' ) : <EOL> @ it . has_setup <EOL> def setup ( ) : <EOL> it . things . append ( <NUM_LIT:2> ) <EOL> @ it . should ( '<STR_LIT>' ) <EOL> def test ( case ) : <EOL> case . assertEqual ( it . things [ - <NUM_LIT:1> ] , <NUM_LIT:2> ) <EOL> it . createTests ( globals ( ) ) </s>
