def test_level_generator_is_created(self):
        portal_config = [PortalAdderConfiguration(icons = (1, 2),
                                                  level_type = 'catacombs',
                                                  location_type = 'room',
                                                  chance = 100,
                                                  new_level = 'upper crypt',
                                                  unique = False)]

        factory = PortalAdderFactory(portal_config,
                                     self.rng)

        portal_adders = factory.create_portal_adders('catacombs')

        portal_adder = portal_adders[0]

        assert_that(portal_adder.level_generator_name,
                    is_(equal_to('upper crypt')))
Test that portal adder has level generator set to it
dataset/ETHPy150Open tuturto/pyherc/src/pyherc/test/unit/test_portaladder.py/TestPortalAdderFactory.test_level_generator_is_created