numberoverzero / bottom

asyncio-based rfc2812-compliant IRC Client
http://bottom-docs.readthedocs.io
MIT License
74 stars 23 forks source link

Add unit tests for Client, Connection #7

Closed numberoverzero closed 9 years ago

numberoverzero commented 9 years ago

Both: mock out events to track invokations and args.

Connection: need a not-terrible way to mock up asyncio.open_connection to return fake StreamReader, StreamWriter instances.

Client: mock out connection