#NEWLINE# def test_except_statements( self ) : #NEWLINE# #INDENT# for clause in ( 'except:' , 'except :' , 'except\t:' ) : #NEWLINE# #INDENT# self . assertNit ( EXCEPT_TEMPLATE . format ( self ) , 'T803' ) #NEWLINE# #UNINDENT# for clause in ( 'except KeyError, e:' , 'except (KeyError, ValueError), e:' , 'except KeyError, e :' , 'except (KeyError, ValueError), e\t:' ) : #NEWLINE# #INDENT# self . assertNit ( EXCEPT_TEMPLATE . format ( clause ) , 'T601' ) #NEWLINE# #UNINDENT# for clause in ( 'except KeyError:' , 'except KeyError as e:' , 'except (KeyError, ValueError) as e:' , 'except (KeyError, ValueError) as e:' ) : #NEWLINE# #INDENT# self . assertNoNits ( EXCEPT_TEMPLATE . format ( clause ) )