def METHOD_NAME(self):
    smpi = self.force_sub_manifest_pkg_info()
    resource = SubManifestPkgInfoResource(smpi)
    self.assertEqual(
        resource.to_representation(),
        (f'resource "zentral_monolith_sub_manifest_pkg_info" "submanifestpkginfo{smpi.pk}" {{\n'
         f'  sub_manifest_id = zentral_monolith_sub_manifest.submanifest{smpi.sub_manifest.pk}.id\n'
         '  key             = "managed_installs"\n'
         f'  pkg_info_name   = "{smpi.pkg_info_name.name}"\n'
         '}')
    )