Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(9)  |  Call(8)  |  Derive(0)  |  Import(1)

src/p/y/pyscholar-HEAD/other-code/BSXPath_ver001e/TEST_BSXPath.py   pyscholar(Download)
 
from BSXPath import BSXPathEvaluator,XPathResult
from BSXPath import ExtDict,typeof,toString
 
(document,options,url_data)=(None,None,u'http://svn.coderepos.org/share/lang/javascript/javascript-xpath/trunk/test/functional/data/')
      mrslt=re.search(r'^\s*(.*?)\s*=>\s*(.*?)\s*$',testline)
      if mrslt:
        tests.append(ExtDict({'expr':mrslt.group(1),'data':mrslt.group(2)}))
    return ExtDict({'comment':comment,'html':html,'contextExpr':contextExpr,'tests':tests})
  except:
          return True
 
        return ExtDict({
          'nodeType' : nodeType
        , 'nodeName' : nodeName
def testNodes(nodes,data):
  tester=NodeTest(data)
  if getattr(tester,'primitive',False):
    if tester.value == nodes:
      return ExtDict({'status':'OK','detail':'-'})