Thanks for having a look at this, but the script above is a little confusing in output, in that barry doesn't have any public email addresses. here's a variation that raises an error if anon logins can see emails (currently raises an error), since jml has public addresses.
Thanks for having a look at this, but the script above is a little confusing in output, in that barry doesn't have any public email addresses. here's a variation that raises an error if anon logins can see emails (currently raises an error), since jml has public addresses.
from launchpadlib. launchpad import Launchpad
def verify_ anon_emails( ): login_anonymous ly("testing" , "https:/ /api.qastaging. launchpad. net/") confirmed_ email_addresses )
lp = Launchpad.
person = lp.people["jml"]
anon_emails = list(person.
lp = Launchpad. login_with( 'testing' , 'https:/ /api.qastaging. launchpad. net/') confirmed_ email_addresses )
person = lp.people["jml"]
auth_emails = list(person.
assert anon_emails != auth_emails, "Anon able to see emails"
if __name__ == '__main__': anon_emails( )
print "Verifing anonymous emails"
verify_