def METHOD_NAME(self):
    with session.begin():
        fqdn = data_setup.unique_name(u'lc%s.com')
        user = data_setup.create_user()
    run_client(['bkr', 'labcontroller-modify',
                '--user', user.user_name,
                '--create', fqdn])
    with session.begin():
        lc = LabController.query.filter_by(fqdn=fqdn).one()
        self.assertEqual(lc.user, user)