| Index: tests/rietveld_test.py
|
| diff --git a/tests/rietveld_test.py b/tests/rietveld_test.py
|
| index 9171c72145dee704beebf3ffaf19fea4cb957a91..17627a5fd1b2a69903e809612d5e0d8e80d6862b 100755
|
| --- a/tests/rietveld_test.py
|
| +++ b/tests/rietveld_test.py
|
| @@ -403,11 +403,12 @@ class CachingRietveldTest(BaseFixture):
|
| self.assertEqual(expected, self.rietveld.get_description(1))
|
|
|
| def test_get_issue_properties(self):
|
| + data = {'description': 'wow\r\nno CR!', 'messages': 'foo'}
|
| self.requests = [
|
| - ('/api/1?messages=true', rietveld.json.dumps({'messages': 'foo'})),
|
| + ('/api/1?messages=true', rietveld.json.dumps(data)),
|
| ]
|
| - expected = {}
|
| - expected_msg = {'messages': 'foo'}
|
| + expected = {u'description': u'wow\nno CR!'}
|
| + expected_msg = {u'description': u'wow\nno CR!', u'messages': u'foo'}
|
| self.assertEqual(expected, self.rietveld.get_issue_properties(1, False))
|
| self.assertEqual(expected_msg, self.rietveld.get_issue_properties(1, True))
|
|
|
|
|