'Verify the API does not allow the verification deadline to be set before the course mode upgrade deadlines.'

def test_update_invalid_dates(self):

    expiration_datetime = datetime.now(pytz.utc)
    verification_deadline = datetime(year=1915, month=5, day=7, tzinfo=pytz.utc)
    (response, __) = self._get_update_response_and_expected_data(expiration_datetime, verification_deadline)
    self.assertEqual(response.status_code, 400)
    actual = json.loads(response.content)
    expected = {'non_field_errors': ['Verification    deadline    must    be    after    the    course    mode    upgrade    deadlines.']}
    self.assertEqual(actual, expected)
