def test_notification_build_multi(self, current_app, render_template): '''Test single build messages have multiple recipients ''' current_app.logger = Mock(info=Mock()) notification = Notification(to_email=['*****@*****.**', '*****@*****.**'], from_email='*****@*****.**') # should build two messages on multi send msgs = notification._build(multi=False) self.assertTrue(len(msgs), 1) for msg in msgs: self.assertEquals(len(msg.recipients), 2)