TestAsyncUDPSocket: remove dead code and add test
authorGuido Trotter <ultrotter@google.com>
Wed, 2 Jun 2010 17:30:04 +0000 (18:30 +0100)
committerGuido Trotter <ultrotter@google.com>
Wed, 2 Jun 2010 17:55:02 +0000 (18:55 +0100)
commit95ab227ed0b12b41560f3229eafc99792634769f
tree76b8cbb2b0c6c0bc4a1d950891185f7ef948fff6
parente9de7da47fb30aff7685a3f90cf750714c56430d
TestAsyncUDPSocket: remove dead code and add test

- _ThreadedClient was added on the idea of making this unittest
  concurrent, which was actually never done (we could test everything
  without it, so well)
- handle_write() was never called without filling the send queue, and
  this caused me trouble now that I learned to look at coverage

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
test/ganeti.daemon_unittest.py