#Uche Ogbuji tries a substitute reader # jkloth 2002-09-26: # Removed unused substitute reader code as this is now done through # InputSources and is tested in other locations (not to mention the code # was *really* out of date) from Xml.Xslt import test_harness sheet_1 = """\ """ source_1 = "" expected_1 = "spam\nxsa\n" def Test(tester): tester.startTest("Connect to Internet") import urllib try: if not tester.offline: urllib.urlopen('http://fourthought.com/') else: raise IOError except IOError: tester.warning("Unable to connect to internet") tester.testDone() return tester.testDone() source = test_harness.FileInfo(string=source_1) sheet = test_harness.FileInfo(string=sheet_1) test_harness.XsltTest(tester, source, [sheet], expected_1, title='document() with ext. URI (requires Internet access)') return