def test_real_send_attachments(self): MyNotification().send() self.assertEqual(len(mail.outbox), 1) self.assertEqual(mail.outbox[0].attachments[0][1],'Some Report Data')