avocado
avocado copied to clipboard
avocado.utils.datadrainer: introduce functional tests
The avocado.utils.datadrainer
module currently lacks functional tests, interacting with live data "producers". We should have a better test coverage that stresses the current implementation. A minimal coverage should include:
- Draining data from various types of sources
1.1. plain files
1.2. sockets
1.3. custom objects providing
fileno()
- Proper error handling 2.1. closing the producer while draining from it 2.2. pausing and resuming the producer