#NEWLINE# def test_assignment_to_None( self ) : #NEWLINE# #INDENT# '\n            Tests that assigning ImageField to None clears dimensions.\n            ' #NEWLINE# p = self . PersonModel ( name = 'Joe' , mugshot = p . file1 ) #NEWLINE# self . check_dimensions ( p , 4 , 8 ) #NEWLINE# p . mugshot = None #NEWLINE# self . check_dimensions ( p , None , None ) #NEWLINE# p . mugshot = self . file2 #NEWLINE# self . check_dimensions ( p , 8 , 4 )