Why violate the typing in a test? mypy never noticed this because tests
are not type checked but there seems to be no need to turn a str into
bytes to pass to a function that is typed only as taking str!
Signed-off-by: John Mulligan <jmulligan@redhat.com>
crt, key = create_self_signed_cert()
# fudge the key, to force an error to be detected during verify_tls
- fudged = f"{key[:-35]}c0ffee==\n{key[-25:]}".encode('utf-8')
+ fudged = f"{key[:-35]}c0ffee==\n{key[-25:]}"
self.assertRaises(ServerConfigException, verify_tls, crt, fudged)
def test_mismatched_tls(self):