Remove usage of deprecated API

This commit is contained in:
Itamar Turner-Trauring 2023-11-15 12:51:43 -05:00
parent 3d753fef93
commit 984b74ee34

View File

@ -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"",
) )