#NEWLINE# def test_should_abort_with_404_when_paginating_an_empty_query( self ) : #NEWLINE# #INDENT# todo = self . Todo ( description = 'Do anything weird' ) #NEWLINE# todo . save ( ) #NEWLINE# self . _replace_flask_abort_raising_exception ( calls = 2 ) #NEWLINE# self . assertRaises ( NotFound , self . Todo . query . filter ( ( self . Todo . description == 'Do anything weird' ) ) . paginate , page = 2 ) #NEWLINE# self . assertRaises ( NotFound , self . Todo . query . filter ( ( self . Todo . description == 'Do anything good' ) ) . paginate , page = 0 ) #NEWLINE# self . mocker . verify ( )