#NEWLINE# def test_substitute_dummies_new_indices( ) : #NEWLINE# #INDENT# ( i , j ) = symbols ( 'i j' , below_fermi = True , cls = Dummy ) #NEWLINE# ( a , b ) = symbols ( 'a b' , above_fermi = True , cls = Dummy ) #NEWLINE# ( p , q ) = symbols ( 'p q' , cls = Dummy ) #NEWLINE# f = Function ( 'f' ) #NEWLINE# assert ( substitute_dummies ( ( f ( i , a , p ) - f ( j , b , q ) ) , new_indices = True ) == 0 )