Link with libebml_pic if avaivable
[vlc.git] / test / PyMediaControlVariablesTest.py
blob9a994f025fd60ef31ab75e6171f828e86230b081
1 #import vlc
2 #import unittest
4 ## FIXME: Always segfault
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)
15 # def tearDown( self ):
16 # print "broken"
17 ## self.playlist.release()
18 ## self.libvlc.release()
19 ## self.mc.exit()
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
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
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"