def testPastRoot(self): self.assertEqual(verifyperms.parent(verifyperms.parent(verifyperms.parent(verifyperms.parent('/usr/local/bin')))), '')
def testParentTrailingSlash(self): self.assertEquals(verifyperms.parent('/usr/local/bin/'), '/usr/local')
def testMultipleCalls(self): self.assertEqual(verifyperms.parent(verifyperms.parent('/usr/local/bin')), '/usr')