#NEWLINE# @ pytest . mark . parametrize ( 'start_scheduler' , [ True , False ] ) #NEWLINE# def test_running( self , scheduler , start_scheduler ) : #NEWLINE# #INDENT# if start_scheduler : #NEWLINE# #INDENT# scheduler . start ( ) #NEWLINE# #UNINDENT# assert ( scheduler . running is start_scheduler )