(self)
| 149 | self.assertIsNone(result) |
| 150 | |
| 151 | def test_read(self): |
| 152 | obj = aiohttp.multipart.BodyPartReader( |
| 153 | self.boundary, {}, Stream(b'Hello, world!\r\n--:')) |
| 154 | result = yield from obj.read() |
| 155 | self.assertEqual(b'Hello, world!', result) |
| 156 | self.assertTrue(obj.at_eof()) |
| 157 | |
| 158 | def test_read_chunk_at_eof(self): |
| 159 | obj = aiohttp.multipart.BodyPartReader( |