'Test that providing an invalid JSON object will result in the appropriate command error'

def test_invalid_json(self):

    with self.assertRaisesRegexp(CommandError, 'Invalid    JSON    object'):
        arg = 'invalid_json'
        call_command('generate_courses', arg)
