aaylward/hapipy — comment on commit 2680299cf0720ef4d090415a48c1e5292106a4f3
File:  line 0
By YoavShapira:

Andy, I'd add a little bit of checking to this test, so that it at least fails more gracefully if it can't find an open lead, and gives informative error messages, rather than just assertions failing.

Like, if there are no open leads, if the open_lead method fails, if the close_lead method fails, all of those should raise clear errors with clear messages.