def register_and_login(client, username, password):
 register(client, username, password)
 return login(client, username, password)

def register_and_login ( client , username , password ) : register ( client , username , password ) return login ( client , username , password )
registers and logs in in one go .