def METHOD_NAME(self):
    with self.assertRaisesRegex(ValueError, "^Must pass only "):
        _repo_query(
            db_path=b"dbpath",
            package_name=None,
            package_path=b"path",
            check_output_fn="unused",
        )