#NEWLINE# def test_basic( self ) : #NEWLINE# #INDENT# p = Person ( first_name = 'John' , last_name = 'Smith' ) #NEWLINE# self . assertEqual ( p . data , [ ] ) #NEWLINE# p . save ( ) #NEWLINE# self . assertEqual ( p . data , [ 'Before save' , 'After save' ] ) #NEWLINE# self . assertQuerysetEqual ( Person . objects . all ( ) , [ 'John Smith' ] , unicode ) #NEWLINE# p . delete ( ) #NEWLINE# self . assertEqual ( p . data , [ 'Before save' , 'After save' , 'Before deletion' , 'After deletion' ] ) #NEWLINE# self . assertQuerysetEqual ( Person . objects . all ( ) , [ ] )