#NEWLINE# def test_request_match_person( self ) : #NEWLINE# #INDENT# 'Check the details of ProfileUpdateRequest when it matches a Person.' #NEWLINE# pr = ProfileUpdateRequest . objects . create ( personal = 'Harry' , family = 'Potter' , email = 'harry@potter.com' , airport_iata = 'LON' , affiliation = 'Hogwarts' , active = True ) #NEWLINE# rv = self . client . get ( reverse ( 'profileupdaterequest_details' , args = [ pr . pk ] ) ) #NEWLINE# content = rv . content . decode ( 'utf-8' ) #NEWLINE# msg = 'No-one matches this email (harry@potter.com) or name (Harry Potter).' #NEWLINE# assert ( msg not in content ) #NEWLINE# assert rv . context [ 'old' ]