'Change the one field to the given value and then invoke the update post to see if it worked.'

def alter_field(self, url, details, field, val):

    setattr(details, field, val)
    payload = copy.copy(details.__dict__)
    payload['start_date'] = CourseDetailsViewTest.convert_datetime_to_iso(details.start_date)
    payload['end_date'] = CourseDetailsViewTest.convert_datetime_to_iso(details.end_date)
    payload['enrollment_start'] = CourseDetailsViewTest.convert_datetime_to_iso(details.enrollment_start)
    payload['enrollment_end'] = CourseDetailsViewTest.convert_datetime_to_iso(details.enrollment_end)
    resp = self.client.ajax_post(url, payload)
    self.compare_details_with_encoding(json.loads(resp.content), details.__dict__, (field + str(val)))
    MilestoneRelationshipType.objects.get_or_create(name='requires')
    MilestoneRelationshipType.objects.get_or_create(name='fulfills')
