#NEWLINE# def test_get_tenant_resources_with_exception( self ) : #NEWLINE# #INDENT# scenario = resources . CeilometerResource ( self . context ) #NEWLINE# resource_list = [ ] #NEWLINE# context = { #NEWLINE# #INDENT# 'user' : { #NEWLINE# #INDENT# 'tenant_id' : 'fake' , #NEWLINE# #UNINDENT# } , #NEWLINE# 'tenant' : { #NEWLINE# #INDENT# 'id' : 'fake' , #NEWLINE# 'resources' : resource_list , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# scenario . context = context #NEWLINE# self . assertRaises ( exceptions . NotFoundException , scenario . get_tenant_resources )