def METHOD_NAME(self):
    """
    Tests that HTTP POST with incorrect csv header is working as expected.
    """
    csv_path = self.create_csv(header=['a', 'b'])
    post_data = {'csv_file': open(csv_path)}
    response = self.client.post(self.view_url, data=post_data)
    assert response.context['form'].errors == {
        'csv_file': [
            'Expected a CSV file with [lms_user_id, course_id, opportunity_id] '
            'columns, but found [a, b] columns instead.'
        ]
    }