#NEWLINE# def test_hard_tabs( self ) : #NEWLINE# #INDENT# rule = rules . BodyHardTab ( ) #NEWLINE# violations = rule . validate ( 'This is a test' , None ) #NEWLINE# self . assertIsNone ( violations ) #NEWLINE# expected_violation = rules . RuleViolation ( 'B3' , 'Line contains hard tab characters (\\t)' , 'This is a\ttest' ) #NEWLINE# violations = rule . validate ( 'This is a\ttest' , None ) #NEWLINE# self . assertListEqual ( violations , [ expected_violation ] )