def METHOD_NAME(self):
    recipeTemplate = BeakerRecipe()
    # with passed-in distroRequires XML
    recipe = self.command.processTemplate(recipeTemplate,
                                          requestedTasks=[{'name': '/example', 'arches': []}],
                                          distroRequires='<distroRequires><distro_name op="=" value="RHEL99-U1" /></distroRequires>',
                                          family='RedHatEnterpriseLinux99')
    xml = recipe.toxml(prettyxml=True)
    self.assertEquals(len(re.findall('<distro_name', xml)), 1, xml)
    # with passed-in hostRequires XML
    recipe = self.command.processTemplate(recipeTemplate,
                                          requestedTasks=[{'name': '/example', 'arches': []}],
                                          hostRequires='<hostRequires><hostname op="=" value="lolcat.example.invalid" /></hostRequires>',
                                          family='RedHatEnterpriseLinux99')
    xml = recipe.toxml(prettyxml=True)
    self.assertEquals(len(re.findall('<hostname', xml)), 1, xml)
    # with distroRequires and hostRequires in the template
    recipeTemplate.addBaseRequires(distro='RHEL99-U1', machine='lolcat.example.invalid')
    recipe = self.command.processTemplate(recipeTemplate,
                                          requestedTasks=[{'name': '/example', 'arches': []}],
                                          family='RedHatEnterpriseLinux99')
    xml = recipe.toxml(prettyxml=True)
    self.assertEquals(len(re.findall('<distro_name', xml)), 1, xml)
    self.assertEquals(len(re.findall('<hostname', xml)), 1, xml)