Skip to content

Commit

Permalink
update test_likes and test_reposts based on altered markup
Browse files Browse the repository at this point in the history
granary/microformats2 markup changed slightly for rendering likes and
reposts.
  • Loading branch information
kylewm committed Nov 12, 2015
1 parent 5767012 commit a18c15a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/test_handlers.py
Expand Up @@ -209,10 +209,13 @@ def test_like(self):
<div class="e-content p-name">
<a class="u-like u-like-of" href="http://example.com/original/post">likes this.</a>
<a class="u-like u-like-of" href="http://or.ig/post"></a>
<a href="http://example.com/original/post">likes this.</a>
</div>
<a class="u-like u-like-of" href="http://example.com/original/post"></a>
<a class="u-like u-like-of" href="http://or.ig/post"></a>
</article>
""")
self.assertIn('<title>Alice</title>', resp.body)
Expand Down Expand Up @@ -254,10 +257,11 @@ def test_repost_with_syndicated_post_and_mentions(self):
<div class="e-content p-name">
<a class="u-repost u-repost-of" href="http://example.com/original/post">reposts this.</a>
<a class="u-repost u-repost-of" href="http://or.ig/post"></a>
<a href="http://example.com/original/post">shared this.</a>
</div>
<a class="u-repost u-repost-of" href="http://example.com/original/post"></a>
<a class="u-repost u-repost-of" href="http://or.ig/post"></a>
Expand Down

0 comments on commit a18c15a

Please sign in to comment.