#NEWLINE# def testPageSize( self ) : #NEWLINE# #INDENT# for ( url , requestClass ) in self . endPointMap . items ( ) : #NEWLINE# #INDENT# for badType in [ '' , '1' , 'None' , 0.0 , 1000.0 ] : #NEWLINE# #INDENT# request = self . _createInstance ( requestClass ) #NEWLINE# request . pageSize = badType #NEWLINE# self . assertRequestRaises ( exceptions . RequestValidationFailureException , url , request ) #NEWLINE# #UNINDENT# for badSize in [ ( - 100 ) , ( - 1 ) , 0 ] : #NEWLINE# #INDENT# request = self . _createInstance ( requestClass ) #NEWLINE# request . pageSize = badSize #NEWLINE# self . assertRequestRaises ( exceptions . BadPageSizeException , url , request )