I'm just testing that the error being thrown contains part of the message I expect. I wasn't looking for the whole message.

You can't catch the CommandError when calling call_command-- you just get a system exit. I am following the same approach that @singingwolfboy pioneered in his PR.