#NEWLINE# def test_id_attribute_is_not_a_string( self ) : #NEWLINE# #INDENT# 'testing if a TypeError will be raised when the id attribute is set\n        to a value other than a string\n        ' #NEWLINE# c = Clip ( id = 'shot1' ) #NEWLINE# with self . assertRaises ( TypeError ) as cm : #NEWLINE# #INDENT# c . id = 123 #NEWLINE# #UNINDENT# self . assertEqual ( cm . exception . message , 'Clip.id should be a string or unicode, not int' )