'Test that the validation message produced for a component
whose access settings contradict the unit level access don\'t
override other messages but add on to them.'

def test_nonsensical_access_restriction_does_not_override(self):

    self.set_group_access(self.vertical_location, {self.user_partition.id: [self.group1.id]})
    self.set_group_access(self.video_location, {self.user_partition.id: [self.group2.id, 999]})
    validation = self.store.get_item(self.video_location).validate()
    self.assertEqual(len(validation.messages), 2)
    self.verify_validation_message(validation.messages[0], INVALID_USER_PARTITION_GROUP_VALIDATION_COMPONENT, ValidationMessage.ERROR)
    self.verify_validation_message(validation.messages[1], NONSENSICAL_ACCESS_RESTRICTION, ValidationMessage.ERROR)
