def METHOD_NAME(self):
    """cannot upgrade privilege for a group of which one is a member """
    meowers = self.meowers
    cat = self.cat
    dog = self.dog
    cat.uaccess.share_group_with_user(meowers, dog, PrivilegeCodes.VIEW)
    self.assertFalse(dog in meowers.gaccess.edit_users)
    self.assertTrue(dog in meowers.gaccess.members)
    self.assertTrue(
        is_equal_to_as_set(
            [dog],
            dog.uaccess.get_group_unshare_users(meowers)))
    with self.assertRaises(PermissionDenied):
        dog.uaccess.share_group_with_user(
            meowers, dog, PrivilegeCodes.VIEW)
    with self.assertRaises(PermissionDenied):
        dog.uaccess.share_group_with_user(
            meowers, dog, PrivilegeCodes.CHANGE)
    self.assertTrue(dog in meowers.gaccess.members)
    self.assertTrue(
        is_equal_to_as_set(
            [dog],
            dog.uaccess.get_group_unshare_users(meowers)))