fix test test_fromxml_url
@@ -194,15 +194,15 @@ def test_fromxml_6():
ieq(expect, actual) # verify can iterate twice
-url = 'http://feeds.bbci.co.uk/news/rss.xml'
+def test_fromxml_url():
# check internet connection
try:
+ url = 'http://raw.githubusercontent.com/petl-developers/petl/master/.pydevproject'
urlopen(url)
except Exception as e:
print('SKIP test_fromxml_url: %s' % e, file=sys.stderr)
else:
-
- def test_fromxml_url():
-
- tbl = fromxml(url, './/item', 'title')
- assert nrows(tbl) > 0
+ actual = fromxml(url, 'pydev_property', {'name': ( '.', 'name'), 'prop': '.'})
+ assert nrows(actual) > 0
+ expect = fromxml('.pydevproject', 'pydev_property', {'name': ( '.', 'name'), 'prop': '.'})
+ ieq(expect, actual)
