示例#1
0
 def testPastRoot(self):
     self.assertEqual(verifyperms.parent(verifyperms.parent(verifyperms.parent(verifyperms.parent('/usr/local/bin')))),
                      '')
示例#2
0
 def testParentTrailingSlash(self):
     self.assertEquals(verifyperms.parent('/usr/local/bin/'),
                       '/usr/local')
示例#3
0
 def testMultipleCalls(self):
     self.assertEqual(verifyperms.parent(verifyperms.parent('/usr/local/bin')),
                      '/usr')