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

Method test_binary

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

Source from the content-addressed store, hash-verified

65 self.assertEqual(response, b'foo')
66
67 def test_binary(self):
68 value = b'bar'
69 response = ensure_bytes(value)
70 self.assertIsInstance(response, bytes)
71 self.assertEqual(response, b'bar')
72
73 def test_unicode(self):
74 value = 'baz'

Callers

nothing calls this directly

Calls 1

ensure_bytesFunction · 0.90

Tested by

no test coverage detected