Exemple #1
0
 def testRoot(self):
     path, node, cond = ypath.yparse("/")
     self.assertEqual(path, ())
     self.assertIsNone(node)
     self.assertIsNone(cond)
Exemple #2
0
 def testNone(self):
     path, node, cond = ypath.yparse("")
     self.assertIsNone(path)
     self.assertIsNone(node)
     self.assertIsNone(cond)