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

Method test_string

tests/unit/botocore/test_compat.py:61–65  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

59
60class TestEnsureBytes(unittest.TestCase):
61 def test_string(self):
62 value = 'foo'
63 response = ensure_bytes(value)
64 self.assertIsInstance(response, bytes)
65 self.assertEqual(response, b'foo')
66
67 def test_binary(self):
68 value = b'bar'

Callers

nothing calls this directly

Calls 1

ensure_bytesFunction · 0.90

Tested by

no test coverage detected