File: test_registry.py

package info (click to toggle)
gst-python 0.8.1-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,056 kB
  • ctags: 306
  • sloc: sh: 8,485; python: 1,257; xml: 393; ansic: 271; makefile: 239
file content (16 lines) | stat: -rw-r--r-- 530 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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()