code: def isDirection(self, outputLocation, inputLocation):
          
          return (self.isOutputLocation(outputLocation) and
                  self.isInputLocation(inputLocation))
docs: Checks to see if the output and input locations match the settings \
          for this item.
          
          :param      outputLocation      | <XConnectionLocation>
          :param      inputLocation       | <XConnectionLocation>
          
          :return     <bool>