def METHOD_NAME(self):
    # Changing the name of the group shouldn't affect anything
    # get a group assigned to the user - should be group 0 or 1
    old_group = RandomUserPartitionScheme.get_group_for_user(self.MOCK_COURSE_ID, self.user, self.user_partition)
    assert old_group.id in [0, 1]
    # Change the group names
    groups = [Group(0, 'Group 0'), Group(1, 'Group 1')]
    user_partition = UserPartition(
        self.TEST_ID,
        'Test Partition',
        'for testing purposes',
        groups,
        scheme=RandomUserPartitionScheme
    )
    # Now, get a new group using the same call
    new_group = RandomUserPartitionScheme.get_group_for_user(self.MOCK_COURSE_ID, self.user, user_partition)
    assert old_group.id == new_group.id