Stub dockerpty.start() in tests.

Signed-off-by: Chris Corbyn <chris@w3style.co.uk>