From d7875587b79fa1b3292862ac62d78d8cb7d220bc Mon Sep 17 00:00:00 2001 From: Garret Wassermann Date: Thu, 20 Oct 2016 12:05:28 -0400 Subject: [PATCH] Revert previous change --- helpdesk/tests/test_get_email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/tests/test_get_email.py b/helpdesk/tests/test_get_email.py index 5c97d8ae..003d9a97 100644 --- a/helpdesk/tests/test_get_email.py +++ b/helpdesk/tests/test_get_email.py @@ -36,7 +36,7 @@ class GetEmailTestCase(TestCase): # tests reading emails from a queue and creating tickets def test_read_email(self): - test_email = six.b("To: update.public@example.com\nFrom: comment@example.com\nSubject: Some Comment\n\nThis is the helpdesk comment via email.") + test_email = "To: update.public@example.com\nFrom: comment@example.com\nSubject: Some Comment\n\nThis is the helpdesk comment via email." with mock.patch('helpdesk.management.commands.get_email.listdir') as mocked_listdir, \ mock.patch('helpdesk.management.commands.get_email.isfile') as mocked_isfile, \ mock.patch('builtins.open' if six.PY3 else '__builtin__.open', mock.mock_open(read_data=test_email)):