Browse Source

Tests: Add PYADPT-124 - identity.update() on new identiy raises PEP_CANNOT_SET_PERSON

PYADPT-116
heck 4 years ago
parent
commit
0a8527c094
  1. 12
      tests/test_identity.py

12
tests/test_identity.py

@ -29,6 +29,18 @@ def test_identity_constructor(pEp, model):
assert str(alice) == str(model.alice)
# Covers PYADPT-124
def test_identity_update_cpt(pEp,model):
bob = pEp.Identity(model.bob.addr, model.bob.name)
bob.update()
assert bob.address == model.bob.addr
assert bob.username == model.bob.name
assert bob.user_id == 'TOFU_bob@peptest.org'
assert bob.fpr == ''
assert bob.comm_type == 0
assert bob.lang == ''
# TODO:
# These here are actually plenty of individual tests
# Identity.update

Loading…
Cancel
Save