Python oslo_service.service.ServiceBase() Examples

The following are 1 code examples of oslo_service.service.ServiceBase(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module oslo_service.service , or try the search function .
Example #1
Source File: test_service.py    From oslo.service with Apache License 2.0 5 votes vote down vote up
def test_launch_wrong_service_base_class(self):
        # check that services that do not subclass service.ServiceBase
        # can not be launched.
        svc = mock.Mock()
        self.assertRaises(TypeError, service.launch, self.conf, svc)