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

        factory = PortalAdderFactory(portal_config,
                                     self.rng)
        factory.level_generator_factory = mock()

        portal_adders = factory.create_portal_adders('catacombs')

        assert_that(portal_adders, has_length(1))
Generates keys and parameters for credential user
dataset/ETHPy150Open tuturto/pyherc/src/pyherc/test/unit/test_portaladder.py/TestPortalAdderFactory.test_level_type_is_respected--crossover with--dataset/ETHPy150Open gdanezis/petlib/examples/amacscreds.py/cred_UserKeyge