mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-30 17:56:58 +00:00
Remove usage of deprecated API
This commit is contained in:
parent
3d753fef93
commit
984b74ee34
@ -507,7 +507,7 @@ class TestUtil(unittest.TestCase):
|
||||
"""
|
||||
remove a simple prefix properly
|
||||
"""
|
||||
self.assertEquals(
|
||||
self.assertEqual(
|
||||
remove_prefix(b"foobar", b"foo"),
|
||||
b"bar"
|
||||
)
|
||||
@ -523,7 +523,7 @@ class TestUtil(unittest.TestCase):
|
||||
"""
|
||||
removing a zero-length prefix does nothing
|
||||
"""
|
||||
self.assertEquals(
|
||||
self.assertEqual(
|
||||
remove_prefix(b"foobar", b""),
|
||||
b"foobar",
|
||||
)
|
||||
@ -532,7 +532,7 @@ class TestUtil(unittest.TestCase):
|
||||
"""
|
||||
removing a prefix which is the whole string is empty
|
||||
"""
|
||||
self.assertEquals(
|
||||
self.assertEqual(
|
||||
remove_prefix(b"foobar", b"foobar"),
|
||||
b"",
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user