

class DummyMixIn(object):
    _input_buffer = ''

    def flush(self):
        pass

    def close(self):
        pass


class CallLogger(object):

    def __init__(self, func):
        self.func = func
        self.was_called = False

    def __call__(self, *args, **kwargs):
        self.was_called = True
        return self.func(*args, **kwargs)


def track_call(func):
    return CallLogger(func)



class DummyMixIn(object):
    _input_buffer = ''
    addr = ('localhost', '15200')

    def flush(self):
        pass

    def close(self):
        pass


class CallLogger(object):

    def __init__(self, func):
        self.func = func
        self.was_called = False

    def __call__(self, *args, **kwargs):
        self.was_called = True
        return self.func(*args, **kwargs)


def track_call(func):
    return CallLogger(func)

Set dummy address info for tests.
Set dummy address info for tests.

  
  
  class DummyMixIn(object):
      _input_buffer = ''
+     addr = ('localhost', '15200')
  
      def flush(self):
          pass
  
      def close(self):
          pass
  
  
  class CallLogger(object):
  
      def __init__(self, func):
          self.func = func
          self.was_called = False
  
      def __call__(self, *args, **kwargs):
          self.was_called = True
          return self.func(*args, **kwargs)
  
  
  def track_call(func):
      return CallLogger(func)
  
Set dummy address info for tests.
## Code Before:


class DummyMixIn(object):
    _input_buffer = ''

    def flush(self):
        pass

    def close(self):
        pass


class CallLogger(object):

    def __init__(self, func):
        self.func = func
        self.was_called = False

    def __call__(self, *args, **kwargs):
        self.was_called = True
        return self.func(*args, **kwargs)


def track_call(func):
    return CallLogger(func)

## Instruction:
Set dummy address info for tests.
## Code After:


class DummyMixIn(object):
    _input_buffer = ''
    addr = ('localhost', '15200')

    def flush(self):
        pass

    def close(self):
        pass


class CallLogger(object):

    def __init__(self, func):
        self.func = func
        self.was_called = False

    def __call__(self, *args, **kwargs):
        self.was_called = True
        return self.func(*args, **kwargs)


def track_call(func):
    return CallLogger(func)
