#NEWLINE# def test_interval_symbolic( ) : #NEWLINE# #INDENT# x = Symbol ( 'x' ) #NEWLINE# e = Interval ( 0 , 1 ) #NEWLINE# assert ( e . contains ( x ) == And ( ( 0 <= x ) , ( e <= 1 ) ) ) #NEWLINE# raises ( TypeError , ( lambda : ( x in e ) ) ) #NEWLINE# e = Interval ( 0 , 1 , True , True ) #NEWLINE# assert ( e . contains ( x ) == And ( ( 0 < x ) , ( x < 1 ) ) )