def METHOD_NAME(self, osmajor):
    repo_dir = os.path.join(self.harness_repo_dir, osmajor)
    os.mkdir(repo_dir)
    rpm_file = pkg_resources.resource_filename('bkr.server.tests', \
        'tmp-distribution-beaker-task_test-2.0-5.noarch.rpm')
    shutil.copy(rpm_file, repo_dir)
    result = run_createrepo(cwd=repo_dir)
    self.assertEqual(result.returncode, 0, result.err)