#NEWLINE# @ it ( 'can run run all its ExampleGroups' ) #NEWLINE# def s( w ) : #NEWLINE# #INDENT# w . suite . add_example_group ( 'eg for explicit passing to it decorator' ) #NEWLINE# example_group = w . suite . add_example_group ( 'happy example group' ) #NEWLINE# state = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# @ example_group . it ( 'succeeds' ) #NEWLINE# def f( w ) : #NEWLINE# #INDENT# state [ 'ran' ] = True #NEWLINE# #UNINDENT# w . suite . run ( MockReporter ( ) ) #NEWLINE# assert example_group [ 'ran' ]