def test_rabbitmq_is_installed(self, mock_os_exists): mock_os_exists.return_value = True self.assertTrue(rabbit_utils.rabbitmq_is_installed()) mock_os_exists.return_value = False self.assertFalse(rabbit_utils.rabbitmq_is_installed())