IOSAD-76 cosmetics
authorDirk Zimmermann <dirk@pep-project.org>
Mon, 19 Feb 2018 08:11:41 +0100
changeset 465c119e90af091
parent 464 f2c6e076f58c
child 466 ca70c3612a81
IOSAD-76 cosmetics
pEpObjCTests/PEPSessionTest.m
     1.1 --- a/pEpObjCTests/PEPSessionTest.m	Mon Feb 19 07:48:42 2018 +0100
     1.2 +++ b/pEpObjCTests/PEPSessionTest.m	Mon Feb 19 08:11:41 2018 +0100
     1.3 @@ -689,14 +689,16 @@
     1.4      [PEPTestUtils importBundledKey:@"A3FC7F0A_sec.asc"];
     1.5  
     1.6      // Mail from mutt, already processed into message dict by the app.
     1.7 -    NSMutableDictionary *msgDict = [PEPTestUtils
     1.8 -                                    unarchiveDictionary:@"msg_to_A3FC7F0A_from_mutt.ser"].mutableCopy;
     1.9 +    NSMutableDictionary *msgDict = [[PEPTestUtils
    1.10 +                                     unarchiveDictionary:@"msg_to_A3FC7F0A_from_mutt.ser"]
    1.11 +                                    mutableCopy];
    1.12      [msgDict removeObjectForKey:kPepLongMessage];
    1.13      [msgDict removeObjectForKey:kPepLongMessageFormatted];
    1.14  
    1.15      // Also extracted "live" from the app.
    1.16 -    NSMutableDictionary *accountDict = [PEPTestUtils
    1.17 -                                        unarchiveDictionary:@"account_A3FC7F0A.ser"].mutableCopy;
    1.18 +    NSMutableDictionary *accountDict = [[PEPTestUtils
    1.19 +                                         unarchiveDictionary:@"account_A3FC7F0A.ser"]
    1.20 +                                        mutableCopy];
    1.21      [accountDict removeObjectForKey:kPepCommType];
    1.22      [accountDict removeObjectForKey:kPepFingerprint];
    1.23      PEPIdentity *identMe = [[PEPIdentity alloc] initWithDictionary:accountDict];
    1.24 @@ -708,7 +710,7 @@
    1.25      PEPMessage *msg = [PEPMessage new];
    1.26      [msg setValuesForKeysWithDictionary:msgDict];
    1.27      PEPMessage *pepDecryptedMail;
    1.28 -    [session decryptMessage:msg dest:&pepDecryptedMail keys:&keys];
    1.29 +    PEP_rating rating = [session decryptMessage:msg dest:&pepDecryptedMail keys:&keys];
    1.30      XCTAssertNotNil(pepDecryptedMail.longMessage);
    1.31  }
    1.32