#NEWLINE# def test_get_configured_project_ids_excludes_deleted_projects( self ) : #NEWLINE# #INDENT# project = factories . ProjectFactory ( ) #NEWLINE# subscription = factories . NotificationSubscriptionFactory ( _id = ( ( self . _id + '_' ) + 'comments' ) , owner = project ) #NEWLINE# subscription . save ( ) #NEWLINE# subscription . email_transactional . append ( self . user ) #NEWLINE# subscription . save ( ) #NEWLINE# project . is_deleted = True #NEWLINE# project . save ( ) #NEWLINE# assert_not_in ( project . _id , utils . get_configured_projects ( self . user ) )