'Test that the dynamic enrollment track scheme is added if there is no conflict with the user partition ID.'

def test_enrollment_track_partition_added(self):

    all_partitions = get_all_partitions_for_course(self.course)
    self.assertEqual(2, len(all_partitions))
    self.assertEqual(self.TEST_SCHEME_NAME, all_partitions[0].scheme.name)
    enrollment_track_partition = all_partitions[1]
    self.assertEqual(self.ENROLLMENT_TRACK_SCHEME_NAME, enrollment_track_partition.scheme.name)
    self.assertEqual(unicode(self.course.id), enrollment_track_partition.parameters['course_id'])
    self.assertEqual(ENROLLMENT_TRACK_PARTITION_ID, enrollment_track_partition.id)
