#NEWLINE# def test_parser( ) : #NEWLINE# #INDENT# parser = TODOCount ( ) #NEWLINE# input_stats = [ FileDiffStat ( b'foo/bar.py' , [ ( b'# TO' + b'DO: herp all the derps' ) , b'womp' ] , [ ] , None ) ] #NEWLINE# metrics = list ( parser . get_metrics_from_stat ( parser ) ) #NEWLINE# assert ( metrics == [ Metric ( 'TODOCount' , 1 ) ] )