From b67cfc69504e52a430549553572051866aa15079 Mon Sep 17 00:00:00 2001
From: Chuck Short <chucks@redhat.com>
Date: Mon, 27 Aug 2018 10:39:59 -0400
Subject: [PATCH] Replace assertRaisesRegexp with assertRaisesRegex

This replaces the deprecated (in python 3.2) unittest.TestCase method
assertRaisesRegexp() with assertRaisesRegex().

Change-Id: I0ac482741ad4adc1127dd9e9f64c1c8101f370e5
Signed-off-by: Chuck Short <chucks@redhat.com>
---
 diskimage_builder/tests/test_elementdeps.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/diskimage_builder/tests/test_elementdeps.py b/diskimage_builder/tests/test_elementdeps.py
index b4c8fc37c..13e88af01 100644
--- a/diskimage_builder/tests/test_elementdeps.py
+++ b/diskimage_builder/tests/test_elementdeps.py
@@ -174,11 +174,11 @@ class TestElementDeps(testtools.TestCase):
 
     def test_elements_provide_same(self):
         msg = "virtual: already provided by \['provides_virtual'\]"
-        self.assertRaisesRegexp(element_dependencies.AlreadyProvidedException,
-                                msg,
-                                element_dependencies.get_elements,
-                                ['provides_virtual', 'also_provides_virtual'],
-                                self.element_dirs)
+        self.assertRaisesRegex(element_dependencies.AlreadyProvidedException,
+                               msg,
+                               element_dependencies.get_elements,
+                               ['provides_virtual', 'also_provides_virtual'],
+                               self.element_dirs)
 
     def test_no_os_element(self):
         self.assertRaises(element_dependencies.MissingOSException,