def test_get_bytes_with_bytes(self):
     inputs = (
         bytes("a".encode("utf-8")),
         bytes("α".encode("utf-8")),
         bytes("".encode("utf-8")),
     )
     for s in inputs:
         self.assertEqual(get_bytes(s), s)
 def test_get_bytes_with_string(self):
     for s in ("a", "α", ""):
         self.assertEqual(get_bytes(s), bytes(s.encode("utf-8")))