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_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'])