You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
540 B
18 lines
540 B
import vlc
|
|
import unittest
|
|
|
|
# FIXME: How to avoid creating / killing vlc for each test method ?
|
|
|
|
class VariablesTestCase( unittest.TestCase ):
|
|
"""Test misc variables interaction"""
|
|
def setUp( self ):
|
|
self.mc = vlc.MediaControl( [ '--quiet'] )
|
|
|
|
def tearDown( self ):
|
|
self.mc.exit()
|
|
|
|
def testSimple( self ):
|
|
"""Test simple add/remove"""
|
|
assert len( self.mc.playlist_get_list() ) == 0
|
|
self.mc.playlist_add_item( "test" )
|
|
assert len( self.mc.playlist_get_list() ) == 1
|
|
|