def METHOD_NAME(self):
    m = parse_manifest_line("chrome", "content global content/global/")
    m = m.rebase("")
    self.assertEqual(str(m), "content global chrome/content/global/")
    m = m.rebase("chrome")
    self.assertEqual(str(m), "content global content/global/")
    m = parse_manifest_line("chrome/foo", "content global content/global/")
    m = m.rebase("chrome")
    self.assertEqual(str(m), "content global foo/content/global/")
    m = m.rebase("chrome/foo")
    self.assertEqual(str(m), "content global content/global/")
    m = parse_manifest_line("modules/foo", "resource foo ./")
    m = m.rebase("modules")
    self.assertEqual(str(m), "resource foo foo/")
    m = m.rebase("modules/foo")
    self.assertEqual(str(m), "resource foo ./")
    m = parse_manifest_line("chrome", "content browser browser/content/")
    m = m.rebase("chrome/browser").move("jar:browser.jar!").rebase("")
    self.assertEqual(str(m), "content browser jar:browser.jar!/content/")