- if not name in direct_calls:
- raise Exception, "Illegal method call %s for DUMMY driver"%(name)
- result=getattr(self.proxy, actual_name)(*args, **kwds)
- logger.debug('DummyShell %s returned ... '%(name))
+ if not name in DummyShell.direct_calls:
+ raise Exception(
+ "Illegal method call %s for DUMMY driver" % (name))
+ result = getattr(self.proxy, name)(*args, **kwds)
+ logger.debug('DummyShell %s returned ... ' % (name))