mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-02 19:26:44 +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
|
remove a simple prefix properly
|
||||||
"""
|
"""
|
||||||
self.assertEquals(
|
self.assertEqual(
|
||||||
remove_prefix(b"foobar", b"foo"),
|
remove_prefix(b"foobar", b"foo"),
|
||||||
b"bar"
|
b"bar"
|
||||||
)
|
)
|
||||||
@ -523,7 +523,7 @@ class TestUtil(unittest.TestCase):
|
|||||||
"""
|
"""
|
||||||
removing a zero-length prefix does nothing
|
removing a zero-length prefix does nothing
|
||||||
"""
|
"""
|
||||||
self.assertEquals(
|
self.assertEqual(
|
||||||
remove_prefix(b"foobar", b""),
|
remove_prefix(b"foobar", b""),
|
||||||
b"foobar",
|
b"foobar",
|
||||||
)
|
)
|
||||||
@ -532,7 +532,7 @@ class TestUtil(unittest.TestCase):
|
|||||||
"""
|
"""
|
||||||
removing a prefix which is the whole string is empty
|
removing a prefix which is the whole string is empty
|
||||||
"""
|
"""
|
||||||
self.assertEquals(
|
self.assertEqual(
|
||||||
remove_prefix(b"foobar", b"foobar"),
|
remove_prefix(b"foobar", b"foobar"),
|
||||||
b"",
|
b"",
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user