

class GPIO(object):

    BOARD = 'board'
    IN = 'in'
    OUT = 'out'
    PUD_UP = 'pud_up'
    FALLING = 'falling'
    HIGH = 'high'
    LOW = 'low'

    @classmethod
    def setmode(cls, mode):
        print("Mock: set GPIO mode {}".format(mode))

    @classmethod
    def setup(cls, pin, direction, **kwargs):
        print("Mock: setup GPIO pin {} to {}".format(pin, direction))

    @classmethod
    def output(cls, pin, status):
        print("Mock: output GPIO pin {} to {}".format(pin, status))

    @classmethod
    def add_event_detect(cls, pin, status, **kwargs):
        print("Mock: detect GPIO pin {} when {}".format(pin, status))

    @classmethod
    def cleanup(cls):
        print("Mock: quit GPIO")



class GPIO(object):

    BOARD = 'board'
    IN = 'in'
    OUT = 'out'
    PUD_UP = 'pud_up'
    FALLING = 'falling'
    HIGH = 'high'
    LOW = 'low'

    @classmethod
    def setmode(cls, mode):
        print("Mock: set GPIO mode {}".format(mode))

    @classmethod
    def setup(cls, pin, direction, **kwargs):
        print("Mock: setup GPIO pin {} to {}".format(pin, direction))

    @classmethod
    def output(cls, pin, status):
        pass

    @classmethod
    def add_event_detect(cls, pin, status, **kwargs):
        print("Mock: detect GPIO pin {} when {}".format(pin, status))

    @classmethod
    def cleanup(cls):
        print("Mock: quit GPIO")

Remove print message in mocks
Remove print message in mocks

  
  
  class GPIO(object):
  
      BOARD = 'board'
      IN = 'in'
      OUT = 'out'
      PUD_UP = 'pud_up'
      FALLING = 'falling'
      HIGH = 'high'
      LOW = 'low'
  
      @classmethod
      def setmode(cls, mode):
          print("Mock: set GPIO mode {}".format(mode))
  
      @classmethod
      def setup(cls, pin, direction, **kwargs):
          print("Mock: setup GPIO pin {} to {}".format(pin, direction))
  
      @classmethod
      def output(cls, pin, status):
-         print("Mock: output GPIO pin {} to {}".format(pin, status))
+         pass
  
      @classmethod
      def add_event_detect(cls, pin, status, **kwargs):
          print("Mock: detect GPIO pin {} when {}".format(pin, status))
  
      @classmethod
      def cleanup(cls):
          print("Mock: quit GPIO")
  
Remove print message in mocks
## Code Before:


class GPIO(object):

    BOARD = 'board'
    IN = 'in'
    OUT = 'out'
    PUD_UP = 'pud_up'
    FALLING = 'falling'
    HIGH = 'high'
    LOW = 'low'

    @classmethod
    def setmode(cls, mode):
        print("Mock: set GPIO mode {}".format(mode))

    @classmethod
    def setup(cls, pin, direction, **kwargs):
        print("Mock: setup GPIO pin {} to {}".format(pin, direction))

    @classmethod
    def output(cls, pin, status):
        print("Mock: output GPIO pin {} to {}".format(pin, status))

    @classmethod
    def add_event_detect(cls, pin, status, **kwargs):
        print("Mock: detect GPIO pin {} when {}".format(pin, status))

    @classmethod
    def cleanup(cls):
        print("Mock: quit GPIO")

## Instruction:
Remove print message in mocks
## Code After:


class GPIO(object):

    BOARD = 'board'
    IN = 'in'
    OUT = 'out'
    PUD_UP = 'pud_up'
    FALLING = 'falling'
    HIGH = 'high'
    LOW = 'low'

    @classmethod
    def setmode(cls, mode):
        print("Mock: set GPIO mode {}".format(mode))

    @classmethod
    def setup(cls, pin, direction, **kwargs):
        print("Mock: setup GPIO pin {} to {}".format(pin, direction))

    @classmethod
    def output(cls, pin, status):
        pass

    @classmethod
    def add_event_detect(cls, pin, status, **kwargs):
        print("Mock: detect GPIO pin {} when {}".format(pin, status))

    @classmethod
    def cleanup(cls):
        print("Mock: quit GPIO")
