redding/sanford-protocol — pull request #27 by jcredding (2014-06-20 15:25:44+00:00)
Title: Add a `FakeConnection` for testing

This adds a `FakeConnection` that has the same interface as a
`Connection` but doesn't work on a real socket. This is useful
for dependency injecting into tests to get the behavior of a
protocol connection without the overhead of using a real socket.

This also sets up a factory for the tests using asserts factory.
This should be used to help generate random data.

@kellyredding - Ready for review.