Commit 7020315e authored by Johan Dahlin's avatar Johan Dahlin

Add xml tests

Original commit message from CVS:
Add xml tests
parent 85e78b96
......@@ -6,7 +6,8 @@ tests = \ \ \ \ \
@PYTHONPATH=$(PYTHONPATH):$(top_builddir):$(top_builddir)/gst/.libs $(PYTHON) $(srcdir)/
from common import gst, unittest
class PadTest(unittest.TestCase):
def testQuery(self):
xml = gst.XML()
xml.parse_memory("""<?xml version="1.0"?>
<gstreamer xmlns:gst="">
elements = xml.get_topelements()
assert len(elements) == 1
element = elements[0]
assert isinstance(element, gst.Pipeline)
assert element.get_name() == 'test-pipeline'
if __name__ == "__main__":
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment