Merge "Replace deprecated function"

This commit is contained in:
Jenkins 2017-04-25 05:25:30 +00:00 committed by Gerrit Code Review
commit 3f06f4b9d7

View File

@ -82,7 +82,7 @@ class FlavorsV2NegativeTest(base.BaseV2ComputeTest):
self.assertEqual(min_img_ram, image['min_ram'])
# Try to create server with flavor of insufficient ram size
self.assertRaisesRegexp(lib_exc.BadRequest,
self.assertRaisesRegex(lib_exc.BadRequest,
"Flavor's memory is too small for "
"requested image",
self.create_test_server,