mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-11 19:06:33 +00:00
acefacc62c
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
16 lines
530 B
Python
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()
|