예제 #1
0
 def testFindGc1(self):
     gc1 = find_path(self.mp4, './child1/gc')
     self.assertNotEqual(None, gc1)
     gc2 = find_path(self.mp4, './child1/grandchild')
     self.assertNotEqual(None, gc2)
     gc3 = find_path(self.mp4, 'child1/grandchild')
     self.assertNotEqual(None, gc3)
     self.assertEquals(gc1.type, gc2.type)
     self.assertEquals(gc2.type, gc3.type)
예제 #2
0
 def testFindGc1(self):
     gc1 = find_path(self.mp4, './child1/gc')
     self.assertNotEqual(None, gc1)
     gc2 = find_path(self.mp4, './child1/grandchild')
     self.assertNotEqual(None, gc2)
     gc3 = find_path(self.mp4, 'child1/grandchild')
     self.assertNotEqual(None, gc3)
     self.assertEquals(gc1.type, gc2.type)
     self.assertEquals(gc2.type, gc3.type)
예제 #3
0
 def find(self, path):
     return find_path(self, path)
예제 #4
0
 def testFindStar(self):
     gc1 = find_path(self.mp4, '*/gc')
     self.assertNotEquals(None, gc1)
예제 #5
0
 def testFindSelf(self):
     root = find_path(self.mp4, '.')
     self.assertEquals(root.type, 'root')
예제 #6
0
 def testFindStar(self):
     gc1 = find_path(self.mp4, '*/gc')
     self.assertNotEquals(None, gc1)
예제 #7
0
 def testFindSelf(self):
     root = find_path(self.mp4, '.')
     self.assertEquals(root.type, 'root')