#NEWLINE# def test_create_w_missing_output_properties( self ) : #NEWLINE# #INDENT# PATH = ( 'projects/%s/datasets' % ( self . PROJECT , ) ) #NEWLINE# RESOURCE = self . _makeResource ( ) #NEWLINE# del RESOURCE [ 'creationTime' ] #NEWLINE# del RESOURCE [ 'lastModifiedTime' ] #NEWLINE# self . WHEN = None #NEWLINE# conn = _Connection ( RESOURCE ) #NEWLINE# client = _Client ( project = self . PROJECT , connection = conn ) #NEWLINE# dataset = self . _makeOne ( self . DS_NAME , client = client ) #NEWLINE# dataset . create ( ) #NEWLINE# self . assertEqual ( len ( conn . _requested ) , 1 ) #NEWLINE# req = conn . _requested [ 0 ] #NEWLINE# self . assertEqual ( req [ 'method' ] , 'POST' ) #NEWLINE# self . assertEqual ( req [ 'path' ] , ( '/%s' % PATH ) ) #NEWLINE# SENT = { #NEWLINE# #INDENT# 'datasetReference' : { #NEWLINE# #INDENT# 'projectId' : self . PROJECT , #NEWLINE# 'datasetId' : self . DS_NAME , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( req [ 'data' ] , SENT ) #NEWLINE# self . _verifyResourceProperties ( dataset , RESOURCE )