MCPcopy Create free account
hub / github.com/aws/aws-cli / test_percent_encode_text

Method test_percent_encode_text

tests/unit/botocore/test_utils.py:1507–1514  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1505 self.assertEqual(percent_encode(1), '1')
1506
1507 def test_percent_encode_text(self):
1508 self.assertEqual(percent_encode(''), '')
1509 self.assertEqual(percent_encode('a'), 'a')
1510 self.assertEqual(percent_encode('\u0000'), '%00')
1511 # Codepoint > 0x7f
1512 self.assertEqual(percent_encode('\u2603'), '%E2%98%83')
1513 # Codepoint > 0xffff
1514 self.assertEqual(percent_encode('\U0001f32e'), '%F0%9F%8C%AE')
1515
1516 def test_percent_encode_bytes(self):
1517 self.assertEqual(percent_encode(b''), '')

Callers

nothing calls this directly

Calls 1

percent_encodeFunction · 0.90

Tested by

no test coverage detected