Example #1
0
def testRegisterBadUsername():
    ex = None
    try:
        yield hub.api_register('1', '*****@*****.**', '12344567')
    except InvalidCredentials, e:
        ex = e
Example #2
0
def testRegisterBadUsername():
    ex = None
    try:
        yield hub.api_register("1", "*****@*****.**", "12344567")
    except InvalidCredentials, e:
        ex = e
Example #3
0
def testRegisterSuceeds():
    user = yield hub.api_register('damouse', '*****@*****.**',
                                  '12344567')
    count = yield manager.db.users.find({'username': '******'})
    assert len(count) == 1
    yield manager.db.users.remove({"_id": user})
Example #4
0
def testRegisterSuceeds():
    user = yield hub.api_register("damouse", "*****@*****.**", "12344567")
    count = yield manager.db.users.find({"username": "******"})
    assert len(count) == 1
    yield manager.db.users.remove({"_id": user})