def METHOD_NAME(self, version, result):
    build = self.project.builds.create(version=version)
    self.assertIsNotNone(build)
    test_run = build.test_runs.create(environment=self.env, job_id="999")
    self.assertIsNotNone(test_run)
    test = test_run.tests.create(
        suite=self.suite,
        result=result,
        metadata=self.metadata,
        build=test_run.build,
        environment=test_run.environment,
    )
    self.assertIsNotNone(test)
    return test