'Test the validation messages produced for an xblock with a valid group access restriction'

def test_validate_restricted_group_access(self):

    self.set_group_access(self.video_location, {self.user_partition.id: [self.group1.id, self.group2.id]})
    validation = self.store.get_item(self.video_location).validate()
    self.assertEqual(len(validation.messages), 0)
