#NEWLINE# def test_from_api_repr_missing_identity( self ) : #NEWLINE# #INDENT# self . _setUpConstants ( ) #NEWLINE# client = _Client ( self . PROJECT ) #NEWLINE# RESOURCE = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# klass = self . _getTargetClass ( ) #NEWLINE# with self . assertRaises ( KeyError ) : #NEWLINE# #INDENT# klass . from_api_repr ( RESOURCE , client = client )