Skip to content

Commit

Permalink
Actually check that the link got stuck in the db.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Mar 4, 2014
1 parent 992b3d7 commit 13694c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_dbai.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ def test_add_assertion(self):
assertion_id = self.api.add_assertion(badge_id, email, None, 'link')
assert self.api.assertion_exists(badge_id, email)

badge = self.api.get_badge(badge_id)
assert badge.assertions[0].issued_for == 'link'

# Ensure that we would have published two fedmsg messages for that.
assert len(self.callback_calls) == 2

Expand Down

0 comments on commit 13694c6

Please sign in to comment.