I've been working on the command-line API client, ap, for the ActivityPub book I'm writing for O'Reilly Media. It's a Python program that implements commands like `ap inbox` (read the inbox) and `ap reject follower` (reject a pending follower).
Originally, I was testing it live, just running it against onepage.pub. This weekend, I buckled down and wrote real unit tests with unittest.mock. It's been amazing; what a great tool.