#NEWLINE# def test_missing_data_returns_404( self ) : #NEWLINE# #INDENT# 'Test that not providing all required fields raises Http404' #NEWLINE# data = { #NEWLINE# #INDENT# 'e' : 'me@razzmatazz.local' , #NEWLINE# #UNINDENT# } #NEWLINE# ( representation , verification_hash ) = url_representation_encode ( data ) #NEWLINE# with self . assertRaises ( Http404 ) : #NEWLINE# #INDENT# self . view ( self . request , encoded_data = representation , request_hash = verification_hash )