Test content length property.
(self)
| 269 | assert abs(elapsed1 - elapsed2) < 0.01 |
| 270 | |
| 271 | def test_content_length(self): |
| 272 | """Test content length property.""" |
| 273 | state = StreamingState() |
| 274 | |
| 275 | state.add_chunk(StreamingChunk(content="Hello")) |
| 276 | assert state.content_length == 5 |
| 277 | |
| 278 | state.add_chunk(StreamingChunk(content=" world")) |
| 279 | assert state.content_length == 11 |
| 280 | |
| 281 | |
| 282 | class TestDisplayUpdate: |
nothing calls this directly
no test coverage detected