Beispiel #1
0
 def test_EmailResponse_generateResponse_withInReplyTo(self):
     response = autoresponder.generateResponse(self.fromAddr,
                                               self.clientAddr,
                                               self.body,
                                               messageID="NSA")
     contents = str(response.readContents()).replace('\x00', '')
     self.assertIsInstance(response.mailfile, (io.BytesIO, io.StringIO))
     self.assertSubstring("In-Reply-To: NSA", contents)
 def test_EmailResponse_generateResponse_withInReplyTo(self):
     response = autoresponder.generateResponse(self.fromAddr,
                                               self.clientAddr,
                                               self.body,
                                               messageID="NSA")
     contents = str(response.readContents()).replace('\x00', '')
     self.assertIsInstance(response.mailfile, (io.BytesIO, io.StringIO))
     self.assertSubstring("In-Reply-To: NSA", contents)
 def test_EmailResponse_generateResponse_readContents(self):
     response = autoresponder.generateResponse(self.fromAddr,
                                               self.clientAddr,
                                               self.body)
     contents = str(response.readContents()).replace('\x00', '')
     self.assertSubstring('timey-wimey, wibbly-warbly... stuff.', contents)
 def test_EmailResponse_generateResponse_mailfile(self):
     response = autoresponder.generateResponse(self.fromAddr,
                                               self.clientAddr,
                                               self.body)
     self.assertIsInstance(response.mailfile, (io.BytesIO, io.StringIO))
 def test_EmailResponse_generateResponse_noSafelog(self):
     autoresponder.safelog.safe_logging = False
     response = autoresponder.generateResponse(self.fromAddr,
                                               self.clientAddr,
                                               self.body)
     self.assertIsInstance(response, autoresponder.EmailResponse)
 def test_EmailResponse_generateResponse(self):
     response = autoresponder.generateResponse(self.fromAddr,
                                               self.clientAddr,
                                               self.body)
     self.assertIsInstance(response, autoresponder.EmailResponse)
Beispiel #7
0
 def test_EmailResponse_generateResponse_readContents(self):
     response = autoresponder.generateResponse(self.fromAddr,
                                               self.clientAddr, self.body)
     contents = str(response.readContents()).replace('\x00', '')
     self.assertSubstring('timey-wimey, wibbly-warbly... stuff.', contents)
Beispiel #8
0
 def test_EmailResponse_generateResponse_mailfile(self):
     response = autoresponder.generateResponse(self.fromAddr,
                                               self.clientAddr, self.body)
     self.assertIsInstance(response.mailfile, (io.BytesIO, io.StringIO))
Beispiel #9
0
 def test_EmailResponse_generateResponse_noSafelog(self):
     autoresponder.safelog.safe_logging = False
     response = autoresponder.generateResponse(self.fromAddr,
                                               self.clientAddr, self.body)
     self.assertIsInstance(response, autoresponder.EmailResponse)
Beispiel #10
0
 def test_EmailResponse_generateResponse(self):
     response = autoresponder.generateResponse(self.fromAddr,
                                               self.clientAddr, self.body)
     self.assertIsInstance(response, autoresponder.EmailResponse)