Changeset 481a02a in trunk
- Timestamp:
- 2016-12-24T04:20:52Z (9 years ago)
- Branches:
- master
- Children:
- 639cc92
- Parents:
- 1284422
- git-author:
- Stefan Lew <admin@…> (2015-04-04 20:10:52)
- git-committer:
- Brian Warner <warner@…> (2016-12-24 04:20:52)
- Location:
- src/allmydata/test/web
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/allmydata/test/web/test_grid.py ¶
r1284422 r481a02a 536 536 get_lonely = "".join([r'<td>FILE</td>', 537 537 r'\s+<td>', 538 r'<a href="[^"]+%s[^"]+" >lonely</a>' % (urllib.quote(lonely_uri),),538 r'<a href="[^"]+%s[^"]+" rel="noreferrer">lonely</a>' % (urllib.quote(lonely_uri),), 539 539 r'</td>', 540 540 r'\s+<td align="right">%d</td>' % len("one"), -
TabularUnified src/allmydata/test/web/test_web.py ¶
r1284422 r481a02a 1569 1569 def _check(html): 1570 1570 # Check if encoded entries are there 1571 self.failUnlessIn('@@named=/' + self._htmlname_urlencoded + '" >'1571 self.failUnlessIn('@@named=/' + self._htmlname_urlencoded + '" rel="noreferrer">' 1572 1572 + self._htmlname_escaped + '</a>', html) 1573 1573 self.failUnlessIn('value="' + self._htmlname_escaped_attr + '"', html) … … 1601 1601 get_bar = "".join([r'<td>FILE</td>', 1602 1602 r'\s+<td>', 1603 r'<a href="%s" >bar.txt</a>' % bar_url,1603 r'<a href="%s" rel="noreferrer">bar.txt</a>' % bar_url, 1604 1604 r'</td>', 1605 1605 r'\s+<td align="right">%d</td>' % len(self.BAR_CONTENTS), … … 1664 1664 self.failUnlessIn('(immutable)', res) 1665 1665 self.failUnless(re.search('<td>FILE</td>' 1666 r'\s+<td><a href="[\.\/]+/file/URI%3ALIT%3Akrugkidfnzsc4/@@named=/short" >short</a></td>', res), res)1666 r'\s+<td><a href="[\.\/]+/file/URI%3ALIT%3Akrugkidfnzsc4/@@named=/short" rel="noreferrer">short</a></td>', res), res) 1667 1667 d.addCallback(_check5) 1668 1668 return d
Note: See TracChangeset
for help on using the changeset viewer.