2
This module contains the definition of the test suite for Totem testing.
5
from .main import SingleApplicationTestSuite
6
from ..application.totem import Application, Totem
12
class TotemTestSuite(SingleApplicationTestSuite):
14
Default test suite for Totem
16
APPLICATION_FACTORY = Totem
17
wavfile = '/tmp/totem.wav'
20
pipeline = 'audiotestsrc freq=%d num-buffers=512 ! queue ! \
22
audio/x-raw-int,width=16,depth=16,channels=1 ! \
24
filesink location=%s' % (self.freq, self.wavfile)
25
element = gst.parse_launch(pipeline)
26
element.set_state(gst.STATE_PLAYING)
28
self.application.open()
31
self.application.close()
32
os.unlink(self.wavfile)
35
self.application.close()