'Create and save a new GradedAssignment model in the test database.'

def create_graded_assignment(self, desc, result_id, outcome_service):

    assignment = GradedAssignment(user=self.user, course_key=self.course.id, usage_key=desc.location, outcome_service=outcome_service, lis_result_sourcedid=result_id, version_number=0)
    assignment.save()
    return assignment
