#NEWLINE# def test_date( self ) : #NEWLINE# #INDENT# date = '1977-01-01' #NEWLINE# album = Album ( date = album ) #NEWLINE# self . assertEqual ( album . date , date ) #NEWLINE# with self . assertRaises ( AttributeError ) : #NEWLINE# #INDENT# album . date = None