ENGINE-374 testIdentityRatingTrustResetMistrustUndo use mySelf
authorDirk Zimmermann <dirk@pep-project.org>
Fri, 16 Feb 2018 16:02:26 +0100
changeset 4602961ec860f19
parent 459 baae5b264964
child 461 56a550bf58e6
ENGINE-374 testIdentityRatingTrustResetMistrustUndo use mySelf
pEpObjCTests/PEPSessionTest.m
     1.1 --- a/pEpObjCTests/PEPSessionTest.m	Fri Feb 16 16:01:38 2018 +0100
     1.2 +++ b/pEpObjCTests/PEPSessionTest.m	Fri Feb 16 16:02:26 2018 +0100
     1.3 @@ -190,11 +190,13 @@
     1.4  {
     1.5      PEPSession *session = [PEPSession new];
     1.6  
     1.7 -    PEPIdentity *me = [self
     1.8 -                       checkMySelfImportingKeyFilePath:@"6FF00E97_sec.asc"
     1.9 -                       address:@"pep.test.alice@pep-project.org"
    1.10 -                       userID:@"Alice_User_ID"
    1.11 -                       fingerPrint:@"4ABE3AAF59AC32CFE4F86500A9411D176FF00E97"];
    1.12 +    PEPIdentity *me = [[PEPIdentity alloc]
    1.13 +                       initWithAddress:@"me@example.org"
    1.14 +                       userID:@"me_myself"
    1.15 +                       userName:@"Me Me"
    1.16 +                       isOwn:YES];
    1.17 +    [session mySelf:me];
    1.18 +    XCTAssertNotNil(me.fingerPrint);
    1.19      XCTAssertEqual([session identityRating:me], PEP_rating_trusted_and_anonymized);
    1.20  
    1.21      PEPIdentity *alice = [self