#NEWLINE# def testKey( self ) : #NEWLINE# #INDENT# k = Gaffer . Animation . Key ( ) #NEWLINE# self . assertEqual ( k . type , Gaffer . Animation . Type . Invalid ) #NEWLINE# self . assertFalse ( k ) #NEWLINE# k = Gaffer . Animation . Key ( 0 , 1 , Gaffer . Animation . Type . Step ) #NEWLINE# self . assertTrue ( k ) #NEWLINE# self . assertEqual ( k . time , 0 ) #NEWLINE# self . assertEqual ( k . value , 1 ) #NEWLINE# self . assertEqual ( k . type , Gaffer . Animation . Type . Step ) #NEWLINE# k . time = 1 #NEWLINE# k . value = 0 #NEWLINE# k . type = Gaffer . Animation . Type . Linear #NEWLINE# self . assertEqual ( k . time , 1 ) #NEWLINE# self . assertEqual ( k . value , 0 ) #NEWLINE# self . assertEqual ( k . type , Gaffer . Animation . Type . Linear ) #NEWLINE# k2 = Gaffer . Animation . Key ( k ) #NEWLINE# self . assertEqual ( k , k2 ) #NEWLINE# k2 . time = 10 #NEWLINE# self . assertNotEqual ( k , k2 )