Clean up a couple deprecation warnings

Change-Id: Ic293402702981cea124d0dc57e95341fda7eaf99
This commit is contained in:
Samuel Merritt 2015-02-24 10:12:16 -08:00
parent d6467d3385
commit d62df398db

View File

@ -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',