Commit 8d897c52 authored by Zuul's avatar Zuul Committed by Gerrit Code Review

Merge "Use fixtures instead of deprecated mockpatch module"

parents 847eaf60 674dfb00
......@@ -14,9 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import fixtures
from oslotest import base
from oslotest import mockpatch
class TestCase(base.BaseTestCase):
......@@ -24,5 +23,5 @@ class TestCase(base.BaseTestCase):
def patch(self, obj, attr):
"""Returns a Mocked object on the patched attribute."""
mockfixture = self.useFixture(mockpatch.PatchObject(obj, attr))
mockfixture = self.useFixture(fixtures.MockPatchObject(obj, attr))
return mockfixture.mock
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment