def testRegisterBadUsername(): ex = None try: yield hub.api_register('1', '*****@*****.**', '12344567') except InvalidCredentials, e: ex = e
def testRegisterBadUsername(): ex = None try: yield hub.api_register("1", "*****@*****.**", "12344567") except InvalidCredentials, e: ex = e
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})
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})