'Verify that verification deadlines can be removed through the API.'

def test_update_remove_verification_deadline(self):

    verification_deadline = datetime(year=1915, month=5, day=7, tzinfo=pytz.utc)
    (response, __) = self._get_update_response_and_expected_data(None, verification_deadline)
    self.assertEqual(VerificationDeadline.deadline_for_course(self.course.id), verification_deadline)
    verified_mode = CourseMode(mode_slug=u'verified', min_price=200, currency=u'USD', sku=u'ABC123', bulk_sku=u'BULK-ABC123', expiration_datetime=None)
    updated_data = self._serialize_course(self.course, [verified_mode], None)
    updated_data['verification_deadline'] = None
    response = self.client.put(self.path, json.dumps(updated_data), content_type=JSON_CONTENT_TYPE)
    self.assertEqual(response.status_code, 200)
    self.assertIsNone(VerificationDeadline.deadline_for_course(self.course.id))
