def METHOD_NAME(self, build_id, directory):
    environment_slug = os.path.basename(directory)
    for testrundir in glob(os.path.join(directory, '*')):
        self.import_testrun(build_id, environment_slug, testrundir)