Use non-ASCII characters in Freshdesk tests, to catch encoding bugs.

(imported from commit 0cc3ebf3548b28c018d75d51e7e66de5dbb59a0b)
This commit is contained in:
Jessica McKellar 2013-11-15 11:09:50 -05:00
parent b0d1d774e3
commit 545e2539f8
4 changed files with 13 additions and 13 deletions

View File

@ -4,11 +4,11 @@
"ticket_id":"12",
"ticket_url":"http://test1234zzz.freshdesk.com/helpdesk/tickets/12",
"ticket_type":"Problem",
"ticket_subject":"Not enough guinea pigs",
"ticket_description":"<div>There are too many cat pictures on the internet. We need more guinea pigs. Exhibit 1:</div>\n<div><br></div>\n<div></div>\n<div><img src=\"http://cdn.freshdesk.com/data/helpdesk/attachments/production/12744808/original/guinea_pig.png?1383958880\" class=\"inline-image\" data-id=\"12744808\" style=\"\"></div>\n<br>",
"ticket_subject":"Not enough guinea pigs",
"ticket_description":"<div>There are too many cat pictures on the internet. We need more guinea pigs. Exhibit 1:</div>\n<div><br></div>\n<div></div>\n<div><img src=\"http://cdn.freshdesk.com/data/helpdesk/attachments/production/12744808/original/guinea_pig.png?1383958880\" class=\"inline-image\" data-id=\"12744808\" style=\"\"></div>\n<br>",
"ticket_status":"Open",
"ticket_priority":"Urgent",
"requester_name":"Requester Bob",
"requester_name":"Requester Bob",
"requester_email":"requester-bob@example.com",
}
}

View File

@ -4,8 +4,8 @@
"ticket_id":"11",
"ticket_url":"http://test1234zzz.freshdesk.com/helpdesk/tickets/11",
"ticket_type":"Incident",
"ticket_subject":"Test ticket subject",
"ticket_description":"<div>Test ticket description.</div>",
"ticket_subject":"Test ticket subject",
"ticket_description":"<div>Test ticket description.</div>",
"ticket_status":"Waiting on Customer",
"ticket_priority":"Low",
"requester_name":"Requester Bob",

View File

@ -4,11 +4,11 @@
"ticket_id":"11",
"ticket_url":"http://test1234zzz.freshdesk.com/helpdesk/tickets/11",
"ticket_type":"Incident",
"ticket_subject":"Test ticket subject",
"ticket_description":"<div>Test ticket description.</div>",
"ticket_subject":"Test ticket subject",
"ticket_description":"<div>Test ticket description.</div>",
"ticket_status":"Pending",
"ticket_priority":"High",
"requester_name":"Requester Bob",
"requester_name":"Requester Bob",
"requester_email":"requester-bob@example.com",
}
}

View File

@ -4058,11 +4058,11 @@ class FreshdeskHookTests(AuthedTestCase):
"Dispatch'r" service.
"""
msg = self.generate_webhook_response("ticket_created")
self.assertEqual(msg.subject, u"#11: Test ticket subject")
self.assertEqual(msg.content, """Requester Bob <requester-bob@example.com> created [ticket #11](http://test1234zzz.freshdesk.com/helpdesk/tickets/11):
self.assertEqual(msg.subject, u"#11: Test ticket subject")
self.assertEqual(msg.content, u"""Requester Bob <requester-bob@example.com> created [ticket #11](http://test1234zzz.freshdesk.com/helpdesk/tickets/11):
~~~ quote
Test ticket description.
Test ticket description .
~~~
Type: **Incident**
@ -4075,7 +4075,7 @@ Status: **Pending**""")
Freshdesk's "Observer" service.
"""
msg = self.generate_webhook_response("status_changed")
self.assertEqual(msg.subject, u"#11: Test ticket subject")
self.assertEqual(msg.subject, u"#11: Test ticket subject")
self.assertEqual(msg.content, """Requester Bob <requester-bob@example.com> updated [ticket #11](http://test1234zzz.freshdesk.com/helpdesk/tickets/11):
Status: **Resolved** => **Waiting on Customer**""")
@ -4113,7 +4113,7 @@ Priority: **High** => **Low**""")
preserve links and images.
"""
msg = self.generate_webhook_response("inline_images")
self.assertEqual(msg.subject, u"#12: Not enough guinea pigs")
self.assertEqual(msg.subject, u"#12: Not enough guinea pigs")
self.assertIn("[guinea_pig.png](http://cdn.freshdesk.com/data/helpdesk/attachments/production/12744808/original/guinea_pig.png)", msg.content)
class RateLimitTests(AuthedTestCase):