IOSAD-61 testEncryptedMailFromMutt IOSAD-61
authorDirk Zimmermann <dirk@pep-project.org>
Mon, 06 Nov 2017 10:34:38 +0100
branchIOSAD-61
changeset 341157bd9f2c973
parent 340 7dfbbd6b92e8
child 342 cbd67dba2ee7
IOSAD-61 testEncryptedMailFromMutt
pEpObjCTests/iOSTests.m
     1.1 --- a/pEpObjCTests/iOSTests.m	Mon Nov 06 10:15:54 2017 +0100
     1.2 +++ b/pEpObjCTests/iOSTests.m	Mon Nov 06 10:34:38 2017 +0100
     1.3 @@ -1166,9 +1166,15 @@
     1.4      NSMutableDictionary *accountDict = [self unarchiveDictionary:@"account_A3FC7F0A.ser"].mutableCopy;
     1.5      [accountDict removeObjectForKey:kPepCommType];
     1.6      [accountDict removeObjectForKey:kPepFingerprint];
     1.7 +    PEPIdentity *identMe = [[PEPIdentity alloc]
     1.8 +                            initWithAddress:accountDict[kPepAddress] userID:accountDict[kPepUserID]
     1.9 +                            userName:accountDict[kPepUsername]
    1.10 +                            fingerPrint:accountDict[kPepFingerprint]
    1.11 +                            commType:[accountDict[kPepCommType] intValue]
    1.12 +                            language:accountDict[@"lang"]];
    1.13  
    1.14 -    [session mySelf:accountDict];
    1.15 -    XCTAssertNotNil(accountDict[kPepFingerprint]);
    1.16 +    [session mySelf:identMe];
    1.17 +    XCTAssertNotNil(identMe.fingerPrint);
    1.18  
    1.19      NSArray* keys;
    1.20      NSMutableDictionary *pepDecryptedMail;