#NEWLINE# def test_topic_private_bulk_create( self ) : #NEWLINE# #INDENT# '\n        Create notifications for a bunch of users\n        ' #NEWLINE# TopicNotification . objects . all ( ) . delete ( ) #NEWLINE# user = utils . create_user ( ) #NEWLINE# user2 = utils . create_user ( ) #NEWLINE# topic = utils . create_topic ( self . category ) #NEWLINE# comment = utils . create_comment ( topic = topic ) #NEWLINE# TopicNotification . bulk_create ( users = [ user , user2 ] , comment = comment ) #NEWLINE# self . assertEqual ( len ( TopicNotification . objects . all ( ) ) , 2 ) #NEWLINE# notification = TopicNotification . objects . get ( user = user , topic = comment . topic ) #NEWLINE# self . assertTrue ( notification . is_active ) #NEWLINE# self . assertFalse ( notification . is_read ) #NEWLINE# self . assertEqual ( notification . comment , comment )