

def test_add_conference(self):
    user = UserFactory()
    add_conference('spsp2014', name='SPSP', admins=[user.username], active=True)
    conf = Conference.find_one(Q('endpoint', 'eq', 'spsp2014'))
    assert_equal(conf.name, 'SPSP')
    assert_true(conf.active)
    assert_in(user, user.admins)

dataset/ETHPy150Open CenterForOpenScience/osf.io/scripts/add_conference.py TestAddConference.test_add_conference/VarMisuse@73/104 `conf`->`user`