#NEWLINE# def testRaisesOnDeletingMultipleNotifications( self ) : #NEWLINE# #INDENT# ( pending , shown ) = self . _GetNotifications ( ) #NEWLINE# self . assertEqual ( len ( pending ) , 3 ) #NEWLINE# self . assertEqual ( len ( shown ) , 0 ) #NEWLINE# args = user_plugin . ApiDeletePendingUserNotificationArgs ( timestamp = self . TIME_0 ) #NEWLINE# with self . assertRaises ( aff4_users . UniqueKeyError ) : #NEWLINE# #INDENT# self . handler . Handle ( pending , token = self . token ) #NEWLINE# #UNINDENT# ( pending , shown ) = self . _GetNotifications ( ) #NEWLINE# self . assertEqual ( len ( pending ) , 3 ) #NEWLINE# self . assertEqual ( len ( shown ) , 0 )