~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/app/browser/tests/test_webservice.py

  • Committer: Colin Watson
  • Date: 2011-08-19 00:25:11 UTC
  • mfrom: (7675.1045.728 db-devel)
  • mto: This revision was merged to the branch mainline in revision 13909.
  • Revision ID: cjwatson@canonical.com-20110819002511-0x8hrqs1ckiqk53g
merge db-devel

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
        request = get_current_web_service_request()
31
31
        renderer = getMultiAdapter(
32
32
            (product, field, request), IFieldHTMLRenderer)
33
 
        # The representation of a person is the same as a tales PersonFormatter.
 
33
        # The representation of a person is the same as a tales
 
34
        # PersonFormatter.
34
35
        self.assertEqual(format_link(eric), renderer(eric))
35
36
 
36
37
    def test_text(self):
42
43
        request = get_current_web_service_request()
43
44
        renderer = getMultiAdapter(
44
45
            (product, field, request), IFieldHTMLRenderer)
45
 
        # The representation is linkified html with hidden email.
 
46
        # The representation is linkified html.
46
47
        self.assertEqual(
47
 
            u'<p>\N{SNOWMAN} &lt;email address hidden&gt; '
 
48
            u'<p>\N{SNOWMAN} snowman@example.com '
48
49
            '<a href="/bugs/1">bug 1</a></p>',
49
50
            renderer(text))
50
51