<s> '''<STR_LIT>''' <EOL> from pyhistorian import * <EOL> from should_dsl import * <EOL> from cStringIO import StringIO <EOL> output = StringIO ( ) <EOL> class ExecutingSnippetBeforeScenarios ( Story ) : <EOL> '''<STR_LIT>''' <EOL> output = output <EOL> colored = False <EOL> scenarios = [ '<STR_LIT>' , '<STR_LIT>' , ] <EOL> def before_all ( self , context ) : <EOL> context . name = '<STR_LIT>' <EOL> class FirstScenario ( Scenario ) : <EOL> @ Then ( '<STR_LIT>' ) <EOL> def check_for_hugo ( self ) : <EOL> self . name | should_be . equal_to | '<STR_LIT>' <EOL> self . name = '<STR_LIT>' <EOL> class SecondScenario ( Scenario ) : <EOL> @ Then ( '<STR_LIT>' ) <EOL> def check_for_another_name ( self ) : <EOL> self . name | should_be . equal_to | '<STR_LIT>' <EOL> output2 = StringIO ( ) <EOL> class ExecutingSnippetBeforeEachScenario ( Story ) : <EOL> '''<STR_LIT>''' <EOL> output = output2 <EOL> colored = False <EOL> scenarios = [ '<STR_LIT>' , '<STR_LIT>' , ] <EOL> def before_each ( self , context ) : <EOL> context . name = '<STR_LIT>' <EOL> class SettingValue ( Scenario ) : <EOL> @ Then ( '<STR_LIT>' ) <EOL> def check_for_hugo ( self ) : <EOL> self . name | should_be . equal_to | '<STR_LIT>' <EOL> self . name = '<STR_LIT>' <EOL> class NoSideEffects ( Scenario ) : <EOL> @ Then ( '<STR_LIT>' ) <EOL> def check_still_for_hugo ( self ) : <EOL> self . name | should_be . equal_to | '<STR_LIT>' </s>
