def assertBytesEqual(self, first, second, msg=None):
    first_bytes = as_bytes(first)
    second_bytes = as_bytes(second)
    self.assertEqual(first=first_bytes, second=second_bytes, msg=msg)
def assertBytesEqual(self, first, second, msg=None):
    first_bytes = as_bytes(first)
    second_bytes = as_bytes(second)
    self.assertEqual(first=first_bytes, second=second_bytes, msg=msg)