Tests that the write method accepts bytearray
()
| 49 | |
| 50 | |
| 51 | def test_05(): |
| 52 | """ |
| 53 | Tests that the write method accepts bytearray |
| 54 | """ |
| 55 | bytes_string = b"Test String 5" |
| 56 | |
| 57 | f = BytesIO() |
| 58 | f.write(bytearray(bytes_string)) |
| 59 | |
| 60 | assert f.getvalue() == bytes_string |
| 61 | |
| 62 | |
| 63 | def test_06(): |
no test coverage detected