def METHOD_NAME(self):
    """Prune --intermediate deletes everything except root jobs"""
    self.writeRecipe("root", """\
        root: True
        depends:
            - lib1
        buildScript: "true"
        packageScript: "true"
        """)
    self.writeRecipe("lib1", """\
        depends:
            - lib2
        buildScript: "true"
        packageScript: "true"
        """)
    self.writeRecipe("lib2", "")
    self.executeBobJenkinsCmd("push test")
    self.assertTrue(self.jenkinsMock.getJobExists("root"))
    self.assertTrue(self.jenkinsMock.getJobExists("lib1"))
    self.assertTrue(self.jenkinsMock.getJobExists("lib2"))
    self.executeBobJenkinsCmd("prune test --intermediate")
    self.assertTrue(self.jenkinsMock.getJobExists("root"))
    self.assertFalse(self.jenkinsMock.getJobExists("lib1"))
    self.assertFalse(self.jenkinsMock.getJobExists("lib2"))