# ===== InputSource support
- def XXXtest_expat_inpsource_filename(self):
- # FIXME: test blocks indefinitely
+ def test_expat_inpsource_filename(self):
parser = create_parser()
result = StringIO()
xmlgen = XMLGenerator(result)
self.assertEquals(result.getvalue(), xml_test_out)
- def XXXtest_expat_inpsource_sysid(self):
- # FIXME: test blocks indefinitely
+ def test_expat_inpsource_sysid(self):
parser = create_parser()
result = StringIO()
xmlgen = XMLGenerator(result)
self.assertEquals(parser.getPublicId(), None)
self.assertEquals(parser.getLineNumber(), 1)
- def XXXtest_expat_locator_withinfo(self):
- # FIXME: test blocks indefinitely
+ def test_expat_locator_withinfo(self):
result = StringIO()
xmlgen = XMLGenerator(result)
parser = create_parser()
self.prepareParser(source)
file = source.getByteStream()
buffer = file.read(self._bufsize)
- while buffer != "":
+ while buffer:
self.feed(buffer)
buffer = file.read(self._bufsize)
self.close()