(self)
| 59 | |
| 60 | class 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' |
nothing calls this directly
no test coverage detected