gstreamer/testsuite/test_registry.py
Johan Dahlin acefacc62c testsuite/registry.py: Add some basic tests
Original commit message from CVS:
* testsuite/registry.py: Add some basic tests

* gst/gst.override: Don't ignore all gst_registry_* symbols
(_wrap_gst_registry_pool_plugin_list): Impl.
(_wrap_gst_registry_pool_feature_list): Impl.

* gst/gst-types.defs (Plugin): Add as a boxed
2004-07-15 10:15:18 +00:00

16 lines
530 B
Python

import sys
from common import gst, unittest
class RegistryPoolTest(unittest.TestCase):
def testPluginList(self):
plugins = gst.registry_pool_plugin_list()
elements = map(lambda p: p.get_name(), plugins)
assert 'gstcoreelements' in elements
def testFeatureList(self):
plugins = gst.registry_pool_feature_list(gst.ElementFactory)
elements = map(lambda p: p.get_name(), plugins)
assert 'fakesink' in elements, elements
if __name__ == "__main__":
unittest.main()