#NEWLINE# def test_patch_w_schema_None( self ) : #NEWLINE# #INDENT# PATH = ( 'projects/%s/datasets/%s/tables/%s' % ( self . PROJECT , self . DS_NAME , self . TABLE_NAME ) ) #NEWLINE# DESCRIPTION = 'DESCRIPTION' #NEWLINE# TITLE = 'TITLE' #NEWLINE# RESOURCE = self . _makeResource ( ) #NEWLINE# RESOURCE [ 'description' ] = DESCRIPTION #NEWLINE# RESOURCE [ 'friendlyName' ] = TITLE #NEWLINE# conn = _Connection ( RESOURCE ) #NEWLINE# client = _Client ( project = dataset . PROJECT , connection = conn ) #NEWLINE# dataset = _Dataset ( client ) #NEWLINE# table = self . _makeOne ( self . TABLE_NAME , dataset = dataset ) #NEWLINE# table . patch ( schema = None ) #NEWLINE# self . assertEqual ( len ( conn . _requested ) , 1 ) #NEWLINE# req = conn . _requested [ 0 ] #NEWLINE# self . assertEqual ( req [ 'method' ] , 'PATCH' ) #NEWLINE# SENT = { #NEWLINE# #INDENT# 'schema' : None , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( req [ 'data' ] , SENT ) #NEWLINE# self . assertEqual ( req [ 'path' ] , ( '/%s' % PATH ) ) #NEWLINE# self . _verifyResourceProperties ( table , RESOURCE )