test_ss_base.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 # -*- coding: utf-8 -*-
00003 
00004 # import python libraries
00005 import logging
00006 import unittest
00007 
00008 from nose.tools import raises
00009 from rospeex_core.ss.base import IClient
00010 
00011 
00012 # setup logging
00013 FORMAT = '[%(levelname)s] %(message)s @%(filename)s:%(funcName)s:%(lineno)d'
00014 logging.basicConfig(format=FORMAT, level=logging.DEBUG)
00015 logger = logging.getLogger(__name__)
00016 
00017 
00018 class TestSpeechSynthesisClient(unittest.TestCase):
00019     def setUp(self):
00020         pass
00021 
00022     @raises(TypeError)
00023     def test_request_invalid_not_implement(self):
00024         client = IClient()
00025         client.request('')
00026 
00027 
00028 if __name__ == '__main__':
00029     import rosunit
00030     test_class = TestSpeechSynthesisClient
00031     rosunit.unitrun(
00032         'rospeex_core',
00033         'speech_synthesis_client_base',
00034         test_class,
00035         None,
00036         coverage_packages=['rospeex_core.ss']
00037     )


rospeex_core
Author(s): Komei Sugiura
autogenerated on Thu Jun 6 2019 18:53:10