#NEWLINE# def test_repetition( self ) : #NEWLINE# #INDENT# defs = names ( 'a = 1; a' , references = True , definitions = False ) #NEWLINE# for _ in range ( 3 ) : #NEWLINE# #INDENT# assert ( len ( defs ) == 1 ) #NEWLINE# ass = defs [ 0 ] . goto_assignments ( ) #NEWLINE# assert ( ass [ 0 ] . description == 'a = 1' )