Go to the documentation of this file.00001
00002
00003
00004 PKG_NAME = 'rospeex_core'
00005
00006 try:
00007 import roslib; roslib.load_manifest(PKG_NAME)
00008 except:
00009 pass
00010
00011 import logging
00012 import unittest
00013
00014 from nose.tools import eq_, raises, nottest
00015 from rospeex_core.ss.client_base import SpeechSynthesisClient
00016 from rospeex_core.exceptions import SpeechSynthesisException
00017
00018
00019
00020 logger = logging.getLogger(__name__)
00021 logger.setLevel(logging.DEBUG)
00022 formatter = logging.Formatter('%(asctime)s:%(levelname)s:%(filename)s:%(lineno)d:%(message)s')
00023 ch = logging.StreamHandler()
00024 ch.setFormatter(formatter)
00025 logger.addHandler(ch)
00026
00027
00028 class TestSpeechSynthesisClient(unittest.TestCase):
00029 def setUp(self):
00030 pass
00031
00032 @raises(SpeechSynthesisException)
00033 def test_request_invalid_not_implement(self):
00034 client = SpeechSynthesisClient()
00035 client.request('')
00036
00037
00038 if __name__ == '__main__':
00039 import rosunit
00040 test_class = TestSpeechSynthesisClient
00041 rosunit.unitrun(PKG_NAME, 'speech_synthesis_client_base', test_class, None, coverage_packages=['rospeex.ss'])