4 # FIXME: Always segfault
6 class VariablesTestCase( unittest.TestCase ):
7 """[PyMC] Test misc variables interaction"""
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)
17 # self.playlist.release()
18 # self.libvlc.release()
21 # The Python binding can't create variables, so just get default ones
23 """[PyMC] Get/Set integer variable"""
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"""
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"""
40 # assert self.libvlc.get( "open" ) == ''
41 # self.libvlc.set( "open", "foo" )
42 # assert self.libvlc.get( "open" ) == "foo"