<s> from specs . fixtures import Foo <EOL> from expects import * <EOL> from expects . testing import failure <EOL> with describe ( '<STR_LIT>' ) : <EOL> with before . each : <EOL> self . obj = Foo ( ) <EOL> with it ( '<STR_LIT>' ) : <EOL> expect ( self . obj ) . to ( be_an ( object ) ) <EOL> with it ( '<STR_LIT>' ) : <EOL> class Object ( object ) : <EOL> pass <EOL> with failure ( '<STR_LIT>' ) : <EOL> expect ( self . obj ) . to ( be_an ( Object ) ) <EOL> with context ( '<STR_LIT>' ) : <EOL> with it ( '<STR_LIT>' ) : <EOL> class Object ( object ) : <EOL> pass <EOL> expect ( self . obj ) . not_to ( be_an ( Object ) ) <EOL> with it ( '<STR_LIT>' ) : <EOL> with failure ( '<STR_LIT>' ) : <EOL> expect ( self . obj ) . not_to ( be_an ( object ) ) </s>
