def test_delete_account_enterpriseid(): user = UserAction(id_type=IdentityTypes.enterpriseID, email="*****@*****.**") user.delete_account() assert user.wire_dict() == { "do": [{ "removeFromDomain": {} }], "user": "******" }
def test_delete_account_adobeid(): user = UserAction(id_type=IdentityTypes.adobeID, email="*****@*****.**") with pytest.raises(ValueError): user.delete_account()