#NEWLINE# def test_from_api_repr_bare( self ) : #NEWLINE# #INDENT# self . _setUpConstants ( ) #NEWLINE# client = _Client ( self . PROJECT ) #NEWLINE# dataset = _Dataset ( client ) #NEWLINE# RESOURCE = { #NEWLINE# #INDENT# 'id' : ( '%s:%s:%s' % ( self . PROJECT , self . DS_NAME , self . TABLE_NAME ) ) , #NEWLINE# 'tableReference' : { #NEWLINE# #INDENT# 'projectId' : self . PROJECT , #NEWLINE# 'datasetId' : self . DS_NAME , #NEWLINE# 'tableId' : self . TABLE_NAME , #NEWLINE# #UNINDENT# } , #NEWLINE# 'type' : 'TABLE' , #NEWLINE# #UNINDENT# } #NEWLINE# klass = self . _getTargetClass ( ) #NEWLINE# table = klass . from_api_repr ( RESOURCE , dataset ) #NEWLINE# self . assertEqual ( table . name , self . TABLE_NAME ) #NEWLINE# self . assertTrue ( ( table . _dataset is dataset ) ) #NEWLINE# self . _verifyResourceProperties ( table , RESOURCE )