#NEWLINE# def test_valid_logout( self ) : #NEWLINE# #INDENT# 'Tests a valid logout and make sure the logout_time is updated\n        ' #NEWLINE# response = self . _login ( is_valid = True ) #NEWLINE# self . assertEquals ( AccessLog . objects . latest ( 'id' ) . logout_time , None ) #NEWLINE# response = self . client . get ( reverse ( 'admin:logout' ) ) #NEWLINE# self . assertNotEquals ( AccessLog . objects . latest ( 'id' ) . logout_time , None ) #NEWLINE# self . assertContains ( response , 'Logged out' )