'Checks that the course not created.'

def assert_create_course_failed(self, error_message):

    resp = self.client.ajax_post('/course/', self.course_data)
    self.assertEqual(resp.status_code, 400)
    data = parse_json(resp)
    self.assertEqual(data['error'], error_message)
