def METHOD_NAME(self):
    @cuda.jit(device=True)
    def foo(x, y):
        return x + y
    with self.assertRaises(RuntimeError) as raises:
        foo.inspect_sass((int32, int32))
    self.assertIn('Cannot inspect SASS of a device function',
                  str(raises.exception))