#NEWLINE# def test_parse_hours_flag( self ) : #NEWLINE# #INDENT# args = [ 'commit' , '-m' , 'fooed a bar' , '--hours' , '3' ] #NEWLINE# self . assertEqual ( commit . parse_hours_flag ( args ) , 3.0 ) #NEWLINE# self . assertEqual ( args , [ 'commit' , '-m' , 'fooed a bar' ] ) #NEWLINE# self . assertEqual ( commit . parse_hours_flag ( self ) , False ) #NEWLINE# self . assertEqual ( args , [ 'commit' , '-m' , 'fooed a bar' ] )