[Answer]-How to handle CommandError exceptions in Django tests

1👍

✅

If your expected behaviour is exception, you can use the assertRaises, look here: https://docs.python.org/2/library/unittest.html#unittest.TestCase.assertRaises

Leave a comment