示例#1
0
 def test_rabbitmqctl_start_app(self, check_call):
     rabbit_utils.rabbitmqctl('start_app')
     check_call.assert_called_with(['/usr/sbin/rabbitmqctl', 'start_app'])
 def test_rabbitmqctl_start_app(self, check_call):
     rabbit_utils.rabbitmqctl('start_app')
     check_call.assert_called_with(['/usr/sbin/rabbitmqctl', 'start_app'])
示例#3
0
 def test_rabbitmqctl_wait(self, check_call):
     rabbit_utils.rabbitmqctl('wait', '/var/lib/rabbitmq.pid')
     check_call.assert_called_with([
         'timeout', '180', '/usr/sbin/rabbitmqctl', 'wait',
         '/var/lib/rabbitmq.pid'
     ])
 def test_rabbitmqctl_wait(self, check_call):
     rabbit_utils.rabbitmqctl('wait', '/var/lib/rabbitmq.pid')
     check_call.assert_called_with(['timeout', '180',
                                    '/usr/sbin/rabbitmqctl', 'wait',
                                    '/var/lib/rabbitmq.pid'])