#NEWLINE# def test_duration_attribute_is_not_an_integer( self ) : #NEWLINE# #INDENT# 'testing if a TypeError will be raised when the duration attribute is\n        not set to a integer value\n        ' #NEWLINE# d = DurationMixin ( duration = 10 ) #NEWLINE# with self . assertRaises ( TypeError ) as cm : #NEWLINE# #INDENT# d . duration = 'not an integer' #NEWLINE# #UNINDENT# self . assertEqual ( self . exception . message , 'DurationMixin.duration should be an non-negative float, not str' )