From d62df398db0d0bf982ea85386bb52cd089d47ef0 Mon Sep 17 00:00:00 2001 From: Samuel Merritt Date: Tue, 24 Feb 2015 10:12:16 -0800 Subject: [PATCH] Clean up a couple deprecation warnings Change-Id: Ic293402702981cea124d0dc57e95341fda7eaf99 --- test/unit/common/test_base_storage_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/common/test_base_storage_server.py b/test/unit/common/test_base_storage_server.py index 53662ac72c..bd23692f05 100644 --- a/test/unit/common/test_base_storage_server.py +++ b/test/unit/common/test_base_storage_server.py @@ -60,7 +60,7 @@ class TestBaseStorageServer(unittest.TestCase): try: baseserver.server_type except NotImplementedError as e: - self.assertEquals(e.message, msg) + self.assertEquals(str(e), msg) def test_allowed_methods(self): conf = {'devices': self.testdir, 'mount_check': 'false', @@ -109,7 +109,7 @@ class TestBaseStorageServer(unittest.TestCase): try: baseserver.OPTIONS(req) except NotImplementedError as e: - self.assertEquals(e.message, msg) + self.assertEquals(str(e), msg) def test_OPTIONS(self): conf = {'devices': self.testdir, 'mount_check': 'false',