def METHOD_NAME(self):
    fqdn = data_setup.unique_name(u'mysystem%s')
    run_client(['bkr', 'system-create', fqdn])
    with session.begin():
        system = System.by_fqdn(fqdn, User.by_user_name(u'admin'))
        self.assertTrue(system.owner.user_name, data_setup.ADMIN_USER)
        self.assertTrue(system.custom_access_policy.grants_everybody(
                SystemPermission.view))
    # duplicate
    try:
        run_client(['bkr', 'system-create', fqdn])
        self.fail('Must fail')
    except ClientError as e:
        self.assertIn("System with fqdn %r already exists" % fqdn,
                      e.stderr_output)