From 01474bf64e0434881059a3638abff5bb62eaedb1 Mon Sep 17 00:00:00 2001
From: Scott Moser <smoser@brickies.net>
Date: Tue, 24 Jan 2017 12:30:47 -0500
Subject: [PATCH] Call reset from setUp and tearDown in addition to enable and
 disable.

When decorating a class via setUp and tearDown, reset() was not being
called.  That was an unintentional change in behavior from previous versions.

Addresses #316.
---
 httpretty/core.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/httpretty/core.py b/httpretty/core.py
index 4f72678..25df1fd 100644
--- a/httpretty/core.py
+++ b/httpretty/core.py
@@ -1580,6 +1580,7 @@ def httprettified(test):
                           else None)
 
         def new_setUp(self):
+            httpretty.reset()
             httpretty.enable()
             if use_addCleanup:
                 self.addCleanup(httpretty.disable)
@@ -1594,6 +1595,7 @@ def httprettified(test):
 
             def new_tearDown(self):
                 httpretty.disable()
+                httpretty.reset()
                 if original_tearDown:
                     original_tearDown(self)
             klass.tearDown = new_tearDown
-- 
2.9.3

