Clean up a couple deprecation warnings
Change-Id: Ic293402702981cea124d0dc57e95341fda7eaf99
This commit is contained in:
parent
d6467d3385
commit
d62df398db
@ -60,7 +60,7 @@ class TestBaseStorageServer(unittest.TestCase):
|
|||||||
try:
|
try:
|
||||||
baseserver.server_type
|
baseserver.server_type
|
||||||
except NotImplementedError as e:
|
except NotImplementedError as e:
|
||||||
self.assertEquals(e.message, msg)
|
self.assertEquals(str(e), msg)
|
||||||
|
|
||||||
def test_allowed_methods(self):
|
def test_allowed_methods(self):
|
||||||
conf = {'devices': self.testdir, 'mount_check': 'false',
|
conf = {'devices': self.testdir, 'mount_check': 'false',
|
||||||
@ -109,7 +109,7 @@ class TestBaseStorageServer(unittest.TestCase):
|
|||||||
try:
|
try:
|
||||||
baseserver.OPTIONS(req)
|
baseserver.OPTIONS(req)
|
||||||
except NotImplementedError as e:
|
except NotImplementedError as e:
|
||||||
self.assertEquals(e.message, msg)
|
self.assertEquals(str(e), msg)
|
||||||
|
|
||||||
def test_OPTIONS(self):
|
def test_OPTIONS(self):
|
||||||
conf = {'devices': self.testdir, 'mount_check': 'false',
|
conf = {'devices': self.testdir, 'mount_check': 'false',
|
||||||
|
Loading…
Reference in New Issue
Block a user