#NEWLINE# def testNotificationsOfDifferentTypesAreShownTogether( self ) : #NEWLINE# #INDENT# with self . ACLChecksDisabled ( ) : #NEWLINE# #INDENT# with aff4 . FACTORY . Create ( aff4 . GlobalNotificationStorage . DEFAULT_PATH , aff4_type = 'GlobalNotificationStorage' , mode = 'rw' , token = self . token ) as storage : #NEWLINE# #INDENT# storage . AddNotification ( aff4_users . GlobalNotification ( type = aff4_users . GlobalNotification . Type . ERROR , header = "Oh no, we're doomed!" , content = 'Houston, Houston, we have a prob...' , link = 'http://www.google.com' ) ) #NEWLINE# storage . AddNotification ( aff4_users . GlobalNotification ( type = aff4_users . GlobalNotification . Type . INFO , header = 'Nothing to worry about!' , link = 'http://www.google.com' ) ) #NEWLINE# #UNINDENT# #UNINDENT# self . Open ( '/' ) #NEWLINE# self . WaitUntil ( self . IsTextPresent , 'Houston, Houston, we have a prob...' ) #NEWLINE# self . WaitUntil ( self . IsTextPresent , 'Nothing to worry about!' )