Skip to content

Commit

Permalink
Aumentando el code coverage para pasar este PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe Álvarez committed Sep 15, 2017
1 parent 32267af commit 9097830
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions popular_proposal/tests/subscription_tests.py
Expand Up @@ -58,6 +58,15 @@ class SubscriptionEventsTestCase(SubscriptionTestCaseBase):
def setUp(self):
super(SubscriptionEventsTestCase, self).setUp()

def test_raises_not_implemented_error(self):
class OnlyForThisTest(SubscriptionEventBase):
pass
bad_dispatcher = OnlyForThisTest(None)
with self.assertRaises(NotImplementedError):
bad_dispatcher.get_who()
with self.assertRaises(NotImplementedError):
bad_dispatcher.get_mail_from(None)

def test_triggering_an_event(self):
dispatcher = EventDispatcher()
dispatcher.register('test-event', [TestNewCandidateCommitment, ])
Expand Down

0 comments on commit 9097830

Please sign in to comment.