#NEWLINE# def testBoolPlugNumericConnections( self ) : #NEWLINE# #INDENT# b = Gaffer . BoolPlug ( ) #NEWLINE# for p in ( Gaffer . FloatPlug ( ) , Gaffer . IntPlug ( ) ) : #NEWLINE# #INDENT# b . setInput ( p ) #NEWLINE# self . assertEqual ( b . getValue ( ) , False ) #NEWLINE# p . setValue ( 1 ) #NEWLINE# self . assertEqual ( b . getValue ( ) , True ) #NEWLINE# p . setValue ( 0 ) #NEWLINE# self . assertEqual ( b . getValue ( ) , False ) #NEWLINE# p . setValue ( 1000 ) #NEWLINE# self . assertEqual ( b . getValue ( ) , True )