I'm creating a Management Command
in which I raise a CommandError
exception when something goes wrong.
One of my test cases executes the command in a way that it will raise the exception so the result of the test is Error.
How can I make it pass?