#NEWLINE# def testOccultedLightSource( self ) : #NEWLINE# #INDENT# '\n        Test that a light source which is obscured somehow does not actually\n        illuminate a location.\n        ' #NEWLINE# torch = objects . Thing ( store = self . store , name = 'torch' ) #NEWLINE# objects . LightSource . createFor ( torch , candelas = 80 ) #NEWLINE# c = objects . Container . createFor ( self . observer , capacity = 1000 ) #NEWLINE# torch . moveTo ( self . observer ) #NEWLINE# c . closed = True #NEWLINE# found = list ( self . observer . findProviders ( iimaginary . IVisible , 1 ) ) #NEWLINE# self . assertDarkRoom ( torch [ 0 ] ) #NEWLINE# self . assertEquals ( len ( found ) , 1 )