def METHOD_NAME(self):
    with temp_repos_steps(
        gpg_signing_key=get_test_signing_key(),
        repo_change_steps=[
            {"repo": Repo([Rpm("sheep", "0.3.5.beta", "l33t.deadbeef.777")])}
        ],
    ) as repos_root, temp_dir() as td:
        src_rpm_path = repos_root / (
            "0/repo/repo-pkgs/"
            + "rpm-test-sheep-0.3.5.beta-l33t.deadbeef.777.x86_64.rpm"
        )
        dst_rpm_path = td / "arbitrary_unused_name.rpm"
        shutil.copy(src_rpm_path, dst_rpm_path)
        a = RpmMetadata.from_file(dst_rpm_path)
        self.assertEqual(a.name, "rpm-test-sheep")
        self.assertEqual(a.epoch, 0)
        self.assertEqual(a.version, "0.3.5.beta")
        self.assertEqual(a.release, "l33t.deadbeef.777")
    # non-existent file
    with self.assertRaisesRegex(RuntimeError, "^Error querying RPM:"):
        a = RpmMetadata.from_file(b"idontexist.rpm")
    # missing extension
    with self.assertRaisesRegex(ValueError, " needs to end with .rpm$"):
        a = RpmMetadata.from_file(b"idontendwithdotrpm")