def test_failOnKeyError(self):
        def getpwnam(username):
            raise KeyError(username)
        checker = checkers.UNIXPasswordDatabase([getpwnam])
        credential = UsernamePassword('username', 'username')
        self.assertUnauthorizedLogin(checker.requestAvatarId(credential))
Given a network name, try to guess the right template for it
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/conch/test/test_checkers.py/UNIXPasswordDatabaseTests.test_failOnKeyError--crossover with--dataset/ETHPy150Open open-cloud/xos/xos/openstack/manager.py/OpenStackManager.find_or_make_template_for_network