def METHOD_NAME(self):
    """
    Tests that HTTP POST is working as expected when for some records there is no enrollment.
    """
    csv_data = self.csv_data + [[999, self.course_id, 'NOPE'], [1000, self.course_id, 'NONE']]
    csv_path = self.create_csv(data=csv_data)
    post_data = {'csv_file': open(csv_path)}
    response = self.client.post(self.view_url, data=post_data)
    assert response.status_code == 302
    messages = []
    for msg in get_messages(response.wsgi_request):
        messages.append(str(msg))
    assert messages == [
        'Successfully updated learner enrollment opportunity ids.',
        'Enrollment attributes were not updated for records at following line numbers '
        'in csv because no enrollment found for these records: 4, 5'
    ]