#NEWLINE# def test_issue_9980( ) : #NEWLINE# #INDENT# c1 = ComplexRegion ( ( Interval ( 1 , 2 ) * Interval ( 2 , 3 ) ) ) #NEWLINE# c2 = ComplexRegion ( ( Interval ( 1 , 5 ) * Interval ( 1 , 3 ) ) ) #NEWLINE# R = Union ( c1 , c1 ) #NEWLINE# assert ( simplify ( R ) == ComplexRegion ( Union ( ( Interval ( 1 , 2 ) * Interval ( 2 , 3 ) ) , ( Interval ( 1 , 5 ) * Interval ( 1 , 3 ) ) ) , False ) ) #NEWLINE# assert ( c1 . func ( * c1 . args ) == c1 ) #NEWLINE# assert ( R . func ( * R . args ) == R )