#NEWLINE# def test_ntsc_attribute_is_set_to_a_non_bool_value( self ) : #NEWLINE# #INDENT# 'testing if a TypeError will be raised when the ntsc attribute is set\n        to a non bool value\n        ' #NEWLINE# r = Rate ( ntsc = True ) #NEWLINE# with self . assertRaises ( TypeError ) as cm : #NEWLINE# #INDENT# r . ntsc = 'not a bool value' #NEWLINE# #UNINDENT# self . assertEqual ( str ( cm . exception ) , 'Rate.ntsc should be a bool value, not str' )