예제 #1
0
파일: tests.py 프로젝트: mrmagooey/gossamer
 def test_incorrect_parse_xpath(self):
     s = Silk(self.io_loop)
     s.parse_url('//count()',LOCAL_URL%(LOCAL_PORT,'index.html'), self.stop)
     try:
         self.wait()
     except XPathEvalError:
         pass
예제 #2
0
파일: tests.py 프로젝트: mrmagooey/gossamer
 def test_parse_url(self):
     s = Silk(self.io_loop)
     s.parse_url('//text()', LOCAL_URL%(LOCAL_PORT,'index.html'), self.stop)
     xpath_elements = self.wait()
     self.assertTrue(type(xpath_elements=='list'))