def test_getCudaInfo_fail_on_cpu_instance(self):
        """
        getCudaInfo raise the correct error when called on a CPU instance
        """
        with self.assertRaises(HardwareCompatabilityError) as cm:
            self.monitoring.get_cuda_info()
        self.assertIn("CUDA is not available on this instance", cm.exception.message)

        getCudaInfo raise the correct error when called on a CPU instance
        
tests/integ_tests/core/monitoring/test_monitoring.py