]> git.sesse.net Git - vlc/blob - test/PyMediaControlVariablesTest.py
update module LIST file.
[vlc] / test / PyMediaControlVariablesTest.py
1 #import vlc
2 #import unittest
3 #
4 ## FIXME: Always segfault
5 #
6 #class VariablesTestCase( unittest.TestCase ):
7 #    """[PyMC] Test misc variables interaction"""
8 #    def setUp( self ):
9 #         print "broken"
10 ##        self.mc = vlc.MediaControl( [ '--quiet'] )
11 #        # FIXME ! - Get this through children test
12 ##        self.libvlc = vlc.Object(1)
13 ##        self.playlist = vlc.Object(268)
14 #
15 #    def tearDown( self ):
16 #         print "broken"
17 ##        self.playlist.release() 
18 ##        self.libvlc.release() 
19 ##        self.mc.exit()
20 #            
21 #    # The Python binding can't create variables, so just get default ones
22 #    def testInt( self ):
23 #        """[PyMC] Get/Set integer variable"""
24 #        print "broken"
25 ##        assert self.libvlc.get( "width" ) == 0
26 ##        self.libvlc.set( "width", 42 ) 
27 ##        assert self.libvlc.get( 'width' ) == 42
28 #
29 #    # FIXME: Python binding should listen to return value and raise exception 
30 #    def testInvalidInt( self ):
31 #        """[PyMC] Get/Set invalid integer"""
32 #        print "broken"
33 ##        self.libvlc.set( "width" , 5 )
34 ##        self.libvlc.set( "width", "foo" )
35 ##        assert self.libvlc.get( "width" ) == -1
36 #    
37 #    def testString( self ):
38 #        """[PyMC] Get/Set string variable"""
39 #        print "broken"
40 ##        assert self.libvlc.get( "open" ) == ''
41 ##        self.libvlc.set( "open", "foo" ) 
42 ##        assert self.libvlc.get( "open" ) == "foo"
43 #