<s> '''<STR_LIT>''' <EOL> from pyhistorian import * <EOL> from should_dsl import * <EOL> from cStringIO import StringIO <EOL> output = StringIO ( ) <EOL> output2 = StringIO ( ) <EOL> class ScenarioChangeName ( Scenario ) : <EOL> @ Given ( '<STR_LIT>' ) <EOL> def name_equal_gabriel ( self ) : <EOL> self . name | should_be . equal_to | "<STR_LIT>" <EOL> @ When ( '<STR_LIT>' ) <EOL> def change_name_to_joao ( self ) : <EOL> self . name = '<STR_LIT>' <EOL> @ Then ( '<STR_LIT>' ) <EOL> def check_for_hugo ( self ) : <EOL> self . name | should_be . equal_to | '<STR_LIT>' <EOL> class ExecutingSnippetAfterAllScenarios ( Story ) : <EOL> '''<STR_LIT>''' <EOL> output = output <EOL> colored = False <EOL> scenarios = [ ScenarioChangeName , ] <EOL> def before_all ( self , context ) : <EOL> context . name = '<STR_LIT>' <EOL> def after_all ( self , context ) : <EOL> context . name | should_be . equal_to | '<STR_LIT>' <EOL> class ScenarioOnlyToChangeName ( Scenario ) : <EOL> @ When ( '<STR_LIT>' ) <EOL> def change_name_to_joao ( self ) : <EOL> self . name | should_be . equal_to | '<STR_LIT>' <EOL> self . name = '<STR_LIT>' <EOL> class ExecutingSnippetAfterEachScenario ( Story ) : <EOL> '''<STR_LIT>''' <EOL> output = output2 <EOL> colored = False <EOL> scenarios = [ ScenarioOnlyToChangeName , ] <EOL> def before_each ( self , context ) : <EOL> context . name = '<STR_LIT>' <EOL> def after_each ( self , context ) : <EOL> context . name | should_be . equal_to | '<STR_LIT>' </s>
