#NEWLINE# def test_changeIlluminationLevel( self ) : #NEWLINE# #INDENT# '\n        An administrator can change the illumination level of a room to a fixed\n        number by using the "illuminate" command.\n        ' #NEWLINE# fade_to_black = 'Your environs fade to black due to Ineffable Spooky Magic.' #NEWLINE# no_change = 'You do it.  Swell.' #NEWLINE# dark_to_light = 'Your environs are suddenly alight.' #NEWLINE# brighten = 'Your environs seem slightly brighter.' #NEWLINE# endarken = 'Your environs seem slightly dimmer.' #NEWLINE# theAdmin = Manipulator ( store = self . store , thing = self . playerWrapper . actor ) #NEWLINE# self . playerWrapper . actor . powerUp ( theAdmin ) #NEWLINE# self . _test ( 'illuminate 0' , [ fade_to_black ] , [ fade_to_black ] ) #NEWLINE# ll = self . store . findUnique ( objects . LocationLighting , ( objects . LocationLighting . thing == self . location ) ) #NEWLINE# self . assertEquals ( ll . candelas , 0 ) #NEWLINE# self . _test ( 'illuminate 0' , [ no_change ] ) #NEWLINE# self . assertEquals ( ll . candelas , 0 ) #NEWLINE# self . _test ( 'illuminate 100' , [ dark_to_light ] , [ dark_to_light ] ) #NEWLINE# self . assertEquals ( ll . candelas , 100 ) #NEWLINE# self . _test ( 'illuminate 110' , [ brighten ] , [ self ] ) #NEWLINE# self . assertEquals ( ll . candelas , 110 ) #NEWLINE# self . _test ( 'illuminate 100' , [ endarken ] , [ endarken ] ) #NEWLINE# self . assertEquals ( ll . candelas , 100 ) #NEWLINE# self . _test ( 'illuminate 0' , [ fade_to_black ] , [ fade_to_black ] ) #NEWLINE# self . assertEquals ( ll . candelas , 0 )