#NEWLINE# def test_create_portal_adder( self ) : #NEWLINE# #INDENT# '\n        Test that factory can create a portal adder\n        ' #NEWLINE# portal_config = [ PortalAdderConfiguration ( icons = ( 1 , 2 ) , level_type = 'catacombs' , location_type = 'room' , chance = 100 , new_level = 'upper crypt' , unique = False ) ] #NEWLINE# factory = PortalAdderFactory ( portal_config , self . rng ) #NEWLINE# factory . level_generator_factory = mock ( ) #NEWLINE# portal_adders = factory . create_portal_adders ( 'catacombs' ) #NEWLINE# assert_that ( portal_config , has_length ( 1 ) )