

class RequestMock(object):

    def __init__(self, path="/"):
        self.path = path


class ResponseMock(dict):

    def __init__(self, *args, **kwargs):
        super(ResponseMock, self).__init__(*args, **kwargs)
        self['Content-Type'] = 'text/html'

    status_code = 200
    content = "<html>   <body>some text here</body>    </html>"


class ResponseWithCommentMock(ResponseMock):
    content = "<html>   <!-- some comment --><body>some " + \
              "text here</body>    </html>"



class RequestMock(object):

    def __init__(self, path="/"):
        self.path = path
        self._hit_htmlmin = True


class RequestBareMock(object):

    def __init__(self, path="/"):
        self.path = path


class ResponseMock(dict):

    def __init__(self, *args, **kwargs):
        super(ResponseMock, self).__init__(*args, **kwargs)
        self['Content-Type'] = 'text/html'

    status_code = 200
    content = "<html>   <body>some text here</body>    </html>"


class ResponseWithCommentMock(ResponseMock):
    content = "<html>   <!-- some comment --><body>some " + \
              "text here</body>    </html>"

Extend RequestMock, add RequestBareMock w/o flag
Extend RequestMock, add RequestBareMock w/o flag

RequestMock always pretends that htmlmin has seen the request, so
all other tests work normally.

  
  
  class RequestMock(object):
+ 
+     def __init__(self, path="/"):
+         self.path = path
+         self._hit_htmlmin = True
+ 
+ 
+ class RequestBareMock(object):
  
      def __init__(self, path="/"):
          self.path = path
  
  
  class ResponseMock(dict):
  
      def __init__(self, *args, **kwargs):
          super(ResponseMock, self).__init__(*args, **kwargs)
          self['Content-Type'] = 'text/html'
  
      status_code = 200
      content = "<html>   <body>some text here</body>    </html>"
  
  
  class ResponseWithCommentMock(ResponseMock):
      content = "<html>   <!-- some comment --><body>some " + \
                "text here</body>    </html>"
  
Extend RequestMock, add RequestBareMock w/o flag
## Code Before:


class RequestMock(object):

    def __init__(self, path="/"):
        self.path = path


class ResponseMock(dict):

    def __init__(self, *args, **kwargs):
        super(ResponseMock, self).__init__(*args, **kwargs)
        self['Content-Type'] = 'text/html'

    status_code = 200
    content = "<html>   <body>some text here</body>    </html>"


class ResponseWithCommentMock(ResponseMock):
    content = "<html>   <!-- some comment --><body>some " + \
              "text here</body>    </html>"

## Instruction:
Extend RequestMock, add RequestBareMock w/o flag
## Code After:


class RequestMock(object):

    def __init__(self, path="/"):
        self.path = path
        self._hit_htmlmin = True


class RequestBareMock(object):

    def __init__(self, path="/"):
        self.path = path


class ResponseMock(dict):

    def __init__(self, *args, **kwargs):
        super(ResponseMock, self).__init__(*args, **kwargs)
        self['Content-Type'] = 'text/html'

    status_code = 200
    content = "<html>   <body>some text here</body>    </html>"


class ResponseWithCommentMock(ResponseMock):
    content = "<html>   <!-- some comment --><body>some " + \
              "text here</body>    </html>"
