def METHOD_NAME(self):
    pool_name = data_setup.unique_name(u'mypool%s')
    with session.begin():
        system_owner = data_setup.create_user(password=u'password')
        pool_owner = data_setup.create_user(password=u'password')
        random_user = data_setup.create_user(password=u'password')
        s1 = data_setup.create_system(owner=system_owner)
        s2 = data_setup.create_system(owner=system_owner)
        s3 = data_setup.create_system(owner=system_owner)
        pool = data_setup.create_system_pool(name=pool_name,
                                             owning_user=pool_owner,
                                             systems=[s1, s2, s3]
                                         )
    run_client(['bkr', 'pool-remove', '--pool', pool_name,
                '--system', s1.fqdn],
               config=create_client_config(
                   username=system_owner.user_name,
                   password='password'))
    with session.begin():
        session.refresh(pool)
        self.assertNotIn(s1, pool.systems)
    run_client(['bkr', 'pool-remove', '--pool', pool_name,
                '--system', s2.fqdn],
               config=create_client_config(
                   username=pool_owner.user_name,
                   password='password'))
    with session.begin():
        session.refresh(pool)
        self.assertNotIn(s2, pool.systems)
    try:
        run_client(['bkr', 'pool-remove', '--pool', pool_name,
                    '--system', s3.fqdn],
                   config=create_client_config(
                       username=random_user.user_name,
                       password='password'))
        self.fail('Must fail')
    except ClientError as e:
        self.assertIn('You do not have permission to modify system %s'
                           'or remove systems from pool %s' % (s3.fqdn, pool_name),
                      e.stderr_output)