#NEWLINE# def test_portal_has_icons( self ) : #NEWLINE# #INDENT# '\n        Test that portal created by adder has two icons set\n        One to display and another to be used by opposite end\n        ' #NEWLINE# level = LevelBuilder ( ) . with_size ( ( 20 , 20 ) ) . with_floor_tile ( self . floor_rock ) . with_wall_tile ( self . wall_empty ) . build ( ) #NEWLINE# level_generator = mock ( ) #NEWLINE# for loc_y in range ( 8 , 12 ) : #NEWLINE# #INDENT# for loc_x in range ( 8 , 12 ) : #NEWLINE# #INDENT# add_location_tag ( level , ( loc_x , loc_y ) , 'room' ) #NEWLINE# #UNINDENT# #UNINDENT# portal_adder = PortalAdder ( ( 1 , 2 ) , 'room' , level_generator , False , self . rng ) #NEWLINE# portal_adder . add_portal ( level ) #NEWLINE# portals = [ ] #NEWLINE# for loc_y in range ( 8 , 12 ) : #NEWLINE# #INDENT# for loc_x in range ( 8 , 12 ) : #NEWLINE# #INDENT# temp = get_portal ( level , ( loc_x , loc_y ) ) #NEWLINE# if temp : #NEWLINE# #INDENT# portals . append ( temp ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# portal = portals [ 0 ] #NEWLINE# assert_that ( portal . icon , is_ ( equal_to ( 1 ) ) ) #NEWLINE# assert_that ( portal . other_end_icon , is_ ( equal_to ( 2 ) ) )