FYI, there's already a mock context in the PulpClientTests base class. Not that this at all is wrong to do this, but I mention it in case you've never poked around that base class.