def is_TestPipe_allowed(self, pipeReqType):
        """ pipeReqType is either READ_REQ or WRITE_REQ."""
        if pipeReqType == tango.AttReqType.READ_REQ:
            return self.get_state() not in [DevState.FAULT,
                                            DevState.OFF]
        else:
            return self.get_state() not in [DevState.FAULT,
                                            DevState.OFF,
                                            DevState.MOVING]
def is_TestPipe_allowed ( self , pipeReqType ) : if pipeReqType == tango . AttReqType . READ_REQ : return self . get_state ( ) not in [ DevState . FAULT , DevState . OFF ] else : return self . get_state ( ) not in [ DevState . FAULT , DevState . OFF , DevState . MOVING ]
pipeReqType is either READ_REQ or WRITE_REQ.