commit c171ba31a87f019c83a3947ebf7dd2d729057047 Author: Isis Lovecruft isis@torproject.org Date: Wed May 21 04:11:22 2014 +0000
Rename unittest methods for bridgedb.email.server.MailResponse. --- lib/bridgedb/test/test_email_server.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/bridgedb/test/test_email_server.py b/lib/bridgedb/test/test_email_server.py index ebb9b85..01be6a7 100644 --- a/lib/bridgedb/test/test_email_server.py +++ b/lib/bridgedb/test/test_email_server.py @@ -227,30 +227,30 @@ a ball of timey-wimey, wibbly-warbly... stuff.""" def tearDown(self): server.safelog.safe_logging = True
- def test_generateResponse(self): + def test_MailResponse_generateResponse(self): response = server.generateResponse(self.fromAddr, self.clientAddr, self.body) self.assertIsInstance(response, server.MailResponse)
- def test_generateResponse_noSafelog(self): + def test_MailResponse_generateResponse_noSafelog(self): server.safelog.safe_logging = False response = server.generateResponse(self.fromAddr, self.clientAddr, self.body) self.assertIsInstance(response, server.MailResponse)
- def test_generateResponse_mailfile(self): + def test_MailResponse_generateResponse_mailfile(self): response = server.generateResponse(self.fromAddr, self.clientAddr, self.body) self.assertIsInstance(response.mailfile, (io.BytesIO, io.StringIO))
- def test_generateResponse_withInReplyTo(self): + def test_MailResponse_generateResponse_withInReplyTo(self): response = server.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_generateResponse_readContents(self): + def test_MailResponse_generateResponse_readContents(self): response = server.generateResponse(self.fromAddr, self.clientAddr, self.body) contents = str(response.readContents()).replace('\x00', '')
tor-commits@lists.torproject.org