def METHOD_NAME(self):
    """
    Test that a missing list of courses in json will result in the appropriate command error
    """
    with self.assertRaisesRegex(CommandError, "JSON object is missing courses list"):
        settings = {}
        arg = json.dumps(settings)
        call_command("generate_courses", arg)