another test

This commit is contained in:
meejah 2019-06-23 00:25:14 -06:00
parent ec98924b45
commit 544ad5bb59

View File

@ -481,3 +481,10 @@ class TestUtil(unittest.TestCase):
remove_prefix(b"foobar", b"foobar"),
b"",
)
def test_remove_prefix_partial(self):
"""
remote a prefix with a partial match
"""
with self.assertRaises(BadPrefixError):
remove_prefix(b"foobar", b"fooz"),