#NEWLINE# def test_user_empty( self ) : #NEWLINE# #INDENT# '\n        Iterations exist for other users, but not for `Ewa`. Return a 404 if\n        the user has no iterations.\n        ' #NEWLINE# pearl = mommy . make ( 'core.Pearl' , user = self . becia ) #NEWLINE# mommy . make ( 'core.Iteration' , date = date . today ( ) , pearl = pearl ) #NEWLINE# pearl = mommy . make ( 'core.Pearl' , user = self . matt ) #NEWLINE# mommy . make ( 'core.Iteration' , date = date . today ( ) , pearl = self ) #NEWLINE# with self . assertRaises ( Http404 ) : #NEWLINE# #INDENT# username = self . ewa . username #NEWLINE# url = reverse ( 'edition_today' , args = [ username ] ) #NEWLINE# request = self . factory . get ( url ) #NEWLINE# TodayEditionView . as_view ( ) ( request , user = username )