#NEWLINE# def test_skipping( self ) : #NEWLINE# #INDENT# class Foo ( unittest . TestCase ) : #NEWLINE# #INDENT# def test_skip_me( self ) : #NEWLINE# #INDENT# self . skipTest ( 'skip' ) #NEWLINE# #UNINDENT# #UNINDENT# events = [ ] #NEWLINE# result = LoggingResult ( events ) #NEWLINE# test = Foo ( 'test_skip_me' ) #NEWLINE# test . run ( result ) #NEWLINE# self . assertEqual ( events , [ 'startTest' , 'addSkip' , 'stopTest' ] ) #NEWLINE# self . assertEqual ( result . skipped , [ ( self , 'skip' ) ] ) #NEWLINE# class Foo ( unittest . TestCase ) : #NEWLINE# #INDENT# def setUp( self ) : #NEWLINE# #INDENT# self . skipTest ( 'testing' ) #NEWLINE# #UNINDENT# def test_nothing( self ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# events = [ ] #NEWLINE# result = LoggingResult ( events ) #NEWLINE# test = Foo ( 'test_nothing' ) #NEWLINE# test . run ( result ) #NEWLINE# self . assertEqual ( events , [ 'startTest' , 'addSkip' , 'stopTest' ] ) #NEWLINE# self . assertEqual ( result . skipped , [ ( test , 'testing' ) ] ) #NEWLINE# self . assertEqual ( result . testsRun , 1 )