diff --git a/tests/test_participant.py b/tests/test_participant.py index 040395125f..b2d3fe3ea4 100644 --- a/tests/test_participant.py +++ b/tests/test_participant.py @@ -167,6 +167,14 @@ def test_do_not_take_over_zero_tips_receiving(self): assert 2 == ntips self.db.self_check() + def test_idempotent(self): + alice = TwitterAccount(self.db, 1, dict(screen_name='alice')) + bob = GitHubAccount(self.db, 2, dict(screen_name='bob')) + alice_participant = alice.opt_in('alice')[0].participant + alice_participant.take_over(bob, have_confirmation=True) + alice_participant.take_over(bob, have_confirmation=True) + self.db.self_check() + class TestParticipant(Harness): def setUp(self):