= = = = = = = = = = = = = = = = = = = = = = = = = = = = =   t e s t   s e s s i o n   s t a r t s   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 p l a t f o r m   w i n 3 2   - -   P y t h o n   3 . 1 3 . 3 ,   p y t e s t - 9 . 0 . 2 ,   p l u g g y - 1 . 6 . 0 
 
 r o o t d i r :   C : \ U s e r s \ A r v y   K a i r i \ D e s k t o p \ w h a t s a p p \ p y w a 
 
 c o n f i g f i l e :   p y p r o j e c t . t o m l 
 
 p l u g i n s :   a n y i o - 4 . 1 2 . 1 
 
 c o l l e c t e d   6   i t e m s 
 
 
 
 t e s t s \ u n i t \ t e s t _ s i g n a l . p y   . . F F . .                                                                                   [ 1 0 0 % ] 
 
 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   F A I L U R E S   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _   t e s t _ s i g n a l _ d e c r y p t _ p k m s g   _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
 
 
 
 o b j   =   < m o d u l e   ' p y w a . p r o t o c o l . s i g n a l _ r e p o '   f r o m   ' C : \ \ U s e r s \ \ A r v y   K a i r i \ \ D e s k t o p \ \ w h a t s a p p \ \ p y w a \ \ p y w a \ \ p r o t o c o l \ \ s i g n a l _ r e p o . p y ' > 
 
 n a m e   =   ' s i g n a l _ s e s s i o n _ d e c r y p t _ p r e k e y ' ,   a n n   =   ' p y w a . p r o t o c o l . s i g n a l _ r e p o ' 
 
 
 
         d e f   a n n o t a t e d _ g e t a t t r ( o b j :   o b j e c t ,   n a m e :   s t r ,   a n n :   s t r )   - >   o b j e c t : 
 
                 t r y : 
 
 >                       o b j   =   g e t a t t r ( o b j ,   n a m e ) 
 
                                     ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ 
 
 E                       A t t r i b u t e E r r o r :   m o d u l e   ' p y w a . p r o t o c o l . s i g n a l _ r e p o '   h a s   n o   a t t r i b u t e   ' s i g n a l _ s e s s i o n _ d e c r y p t _ p r e k e y ' .   D i d   y o u   m e a n :   ' s i g n a l _ s e s s i o n _ e n c r y p t ' ? 
 
 
 
 . v e n v \ L i b \ s i t e - p a c k a g e s \ _ p y t e s t \ m o n k e y p a t c h . p y : 9 2 :   A t t r i b u t e E r r o r 
 
 
 
 T h e   a b o v e   e x c e p t i o n   w a s   t h e   d i r e c t   c a u s e   o f   t h e   f o l l o w i n g   e x c e p t i o n : 
 
 
 
 m o n k e y p a t c h   =   < _ p y t e s t . m o n k e y p a t c h . M o n k e y P a t c h   o b j e c t   a t   0 x 0 0 0 0 0 1 C F 5 A B 6 1 A 7 0 > 
 
 
 
         d e f   t e s t _ s i g n a l _ d e c r y p t _ p k m s g ( m o n k e y p a t c h :   p y t e s t . M o n k e y P a t c h )   - >   N o n e : 
 
                 d e f   _ f a k e _ d e c r y p t _ p r e k e y ( 
 
                         s e s s i o n :   b y t e s , 
 
                         i d e n t i t y _ p r i v a t e :   b y t e s , 
 
                         r e g i s t r a t i o n _ i d :   i n t , 
 
                         r e m o t e _ n a m e :   s t r , 
 
                         r e m o t e _ d e v i c e :   i n t , 
 
                         p r e k e y _ i d :   i n t   |   N o n e , 
 
                         p r e k e y _ p r i v a t e :   b y t e s   |   N o n e , 
 
                         s i g n e d _ p r e k e y _ i d :   i n t , 
 
                         s i g n e d _ p r e k e y _ p r i v a t e :   b y t e s , 
 
                         c i p h e r t e x t :   b y t e s , 
 
                 ) : 
 
                         a s s e r t   p r e k e y _ i d   = =   1 2 3 
 
                         a s s e r t   s i g n e d _ p r e k e y _ i d   = =   4 5 6 
 
                         a s s e r t   c i p h e r t e x t   = =   b " \ x 3 3 f a k e _ p r o t o b u f _ b o d y " 
 
                         r e t u r n   { " t y p e " :   " m s g " ,   " c i p h e r t e x t " :   b " d e c r y p t e d _ p a y l o a d " ,   " s e s s i o n " :   b " s 1 " } 
 
         
 
 >               m o n k e y p a t c h . s e t a t t r ( " p y w a . p r o t o c o l . s i g n a l _ r e p o . s i g n a l _ s e s s i o n _ d e c r y p t _ p r e k e y " ,   _ f a k e _ d e c r y p t _ p r e k e y ) 
 
 
 
 t e s t s \ u n i t \ t e s t _ s i g n a l . p y : 1 1 1 :   
 
 _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _ 
 
 . v e n v \ L i b \ s i t e - p a c k a g e s \ _ p y t e s t \ m o n k e y p a t c h . p y : 1 0 6 :   i n   d e r i v e _ i m p o r t p a t h 
 
         a n n o t a t e d _ g e t a t t r ( t a r g e t ,   a t t r ,   a n n = m o d u l e ) 
 
 _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _ 
 
 
 
 o b j   =   < m o d u l e   ' p y w a . p r o t o c o l . s i g n a l _ r e p o '   f r o m   ' C : \ \ U s e r s \ \ A r v y   K a i r i \ \ D e s k t o p \ \ w h a t s a p p \ \ p y w a \ \ p y w a \ \ p r o t o c o l \ \ s i g n a l _ r e p o . p y ' > 
 
 n a m e   =   ' s i g n a l _ s e s s i o n _ d e c r y p t _ p r e k e y ' ,   a n n   =   ' p y w a . p r o t o c o l . s i g n a l _ r e p o ' 
 
 
 
         d e f   a n n o t a t e d _ g e t a t t r ( o b j :   o b j e c t ,   n a m e :   s t r ,   a n n :   s t r )   - >   o b j e c t : 
 
                 t r y : 
 
                         o b j   =   g e t a t t r ( o b j ,   n a m e ) 
 
                 e x c e p t   A t t r i b u t e E r r o r   a s   e : 
 
 >                       r a i s e   A t t r i b u t e E r r o r ( 
 
                                 f " { t y p e ( o b j ) . _ _ n a m e _ _ ! r }   o b j e c t   a t   { a n n }   h a s   n o   a t t r i b u t e   { n a m e ! r } " 
 
                         )   f r o m   e 
 
 E                       A t t r i b u t e E r r o r :   ' m o d u l e '   o b j e c t   a t   p y w a . p r o t o c o l . s i g n a l _ r e p o   h a s   n o   a t t r i b u t e   ' s i g n a l _ s e s s i o n _ d e c r y p t _ p r e k e y ' 
 
 
 
 . v e n v \ L i b \ s i t e - p a c k a g e s \ _ p y t e s t \ m o n k e y p a t c h . p y : 9 4 :   A t t r i b u t e E r r o r 
 
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _   t e s t _ s i g n a l _ d e c r y p t _ m s g   _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
 
 
 
 o b j   =   < m o d u l e   ' p y w a . p r o t o c o l . s i g n a l _ r e p o '   f r o m   ' C : \ \ U s e r s \ \ A r v y   K a i r i \ \ D e s k t o p \ \ w h a t s a p p \ \ p y w a \ \ p y w a \ \ p r o t o c o l \ \ s i g n a l _ r e p o . p y ' > 
 
 n a m e   =   ' s i g n a l _ s e s s i o n _ d e c r y p t _ w h i s p e r ' ,   a n n   =   ' p y w a . p r o t o c o l . s i g n a l _ r e p o ' 
 
 
 
         d e f   a n n o t a t e d _ g e t a t t r ( o b j :   o b j e c t ,   n a m e :   s t r ,   a n n :   s t r )   - >   o b j e c t : 
 
                 t r y : 
 
 >                       o b j   =   g e t a t t r ( o b j ,   n a m e ) 
 
                                     ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ 
 
 E                       A t t r i b u t e E r r o r :   m o d u l e   ' p y w a . p r o t o c o l . s i g n a l _ r e p o '   h a s   n o   a t t r i b u t e   ' s i g n a l _ s e s s i o n _ d e c r y p t _ w h i s p e r ' 
 
 
 
 . v e n v \ L i b \ s i t e - p a c k a g e s \ _ p y t e s t \ m o n k e y p a t c h . p y : 9 2 :   A t t r i b u t e E r r o r 
 
 
 
 T h e   a b o v e   e x c e p t i o n   w a s   t h e   d i r e c t   c a u s e   o f   t h e   f o l l o w i n g   e x c e p t i o n : 
 
 
 
 m o n k e y p a t c h   =   < _ p y t e s t . m o n k e y p a t c h . M o n k e y P a t c h   o b j e c t   a t   0 x 0 0 0 0 0 1 C F 5 A C 1 D 1 3 0 > 
 
 
 
         d e f   t e s t _ s i g n a l _ d e c r y p t _ m s g ( m o n k e y p a t c h :   p y t e s t . M o n k e y P a t c h )   - >   N o n e : 
 
                 d e f   _ f a k e _ d e c r y p t _ w h i s p e r ( 
 
                         s e s s i o n :   b y t e s , 
 
                         i d e n t i t y _ p r i v a t e :   b y t e s , 
 
                         r e g i s t r a t i o n _ i d :   i n t , 
 
                         r e m o t e _ n a m e :   s t r , 
 
                         r e m o t e _ d e v i c e :   i n t , 
 
                         c i p h e r t e x t :   b y t e s , 
 
                 ) : 
 
                         a s s e r t   s e s s i o n   = =   b " s 0 " 
 
                         r e t u r n   { " t y p e " :   " m s g " ,   " c i p h e r t e x t " :   b " w h i s p e r _ p a y l o a d " ,   " s e s s i o n " :   b " s 1 " } 
 
         
 
 >               m o n k e y p a t c h . s e t a t t r ( " p y w a . p r o t o c o l . s i g n a l _ r e p o . s i g n a l _ s e s s i o n _ d e c r y p t _ w h i s p e r " ,   _ f a k e _ d e c r y p t _ w h i s p e r ) 
 
 
 
 t e s t s \ u n i t \ t e s t _ s i g n a l . p y : 1 4 3 :   
 
 _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _ 
 
 . v e n v \ L i b \ s i t e - p a c k a g e s \ _ p y t e s t \ m o n k e y p a t c h . p y : 1 0 6 :   i n   d e r i v e _ i m p o r t p a t h 
 
         a n n o t a t e d _ g e t a t t r ( t a r g e t ,   a t t r ,   a n n = m o d u l e ) 
 
 _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _ 
 
 
 
 o b j   =   < m o d u l e   ' p y w a . p r o t o c o l . s i g n a l _ r e p o '   f r o m   ' C : \ \ U s e r s \ \ A r v y   K a i r i \ \ D e s k t o p \ \ w h a t s a p p \ \ p y w a \ \ p y w a \ \ p r o t o c o l \ \ s i g n a l _ r e p o . p y ' > 
 
 n a m e   =   ' s i g n a l _ s e s s i o n _ d e c r y p t _ w h i s p e r ' ,   a n n   =   ' p y w a . p r o t o c o l . s i g n a l _ r e p o ' 
 
 
 
         d e f   a n n o t a t e d _ g e t a t t r ( o b j :   o b j e c t ,   n a m e :   s t r ,   a n n :   s t r )   - >   o b j e c t : 
 
                 t r y : 
 
                         o b j   =   g e t a t t r ( o b j ,   n a m e ) 
 
                 e x c e p t   A t t r i b u t e E r r o r   a s   e : 
 
 >                       r a i s e   A t t r i b u t e E r r o r ( 
 
                                 f " { t y p e ( o b j ) . _ _ n a m e _ _ ! r }   o b j e c t   a t   { a n n }   h a s   n o   a t t r i b u t e   { n a m e ! r } " 
 
                         )   f r o m   e 
 
 E                       A t t r i b u t e E r r o r :   ' m o d u l e '   o b j e c t   a t   p y w a . p r o t o c o l . s i g n a l _ r e p o   h a s   n o   a t t r i b u t e   ' s i g n a l _ s e s s i o n _ d e c r y p t _ w h i s p e r ' 
 
 
 
 . v e n v \ L i b \ s i t e - p a c k a g e s \ _ p y t e s t \ m o n k e y p a t c h . p y : 9 4 :   A t t r i b u t e E r r o r 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = =   s h o r t   t e s t   s u m m a r y   i n f o   = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F A I L E D   t e s t s / u n i t / t e s t _ s i g n a l . p y : : t e s t _ s i g n a l _ d e c r y p t _ p k m s g   -   A t t r i b u t e E r r o r : . . . 
 
 F A I L E D   t e s t s / u n i t / t e s t _ s i g n a l . p y : : t e s t _ s i g n a l _ d e c r y p t _ m s g   -   A t t r i b u t e E r r o r :   ' . . . 
 
 = = = = = = = = = = = = = = = = = = = = = = = = =   2   f a i l e d ,   4   p a s s e d   i n   0 . 2 5 s   = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 