#NEWLINE# def test_invalid_page_number( self ) : #NEWLINE# #INDENT# '\n        Tests that invalid page numbers result in the correct exception being\n        raised.\n        ' #NEWLINE# paginator = Paginator ( [ 1 , 2 , 3 ] , 2 ) #NEWLINE# self . assertRaises ( PageNotAnInteger , paginator . validate_number , None ) #NEWLINE# self . assertRaises ( PageNotAnInteger , self . validate_number , 'x' )