From 90978301006747b59d6d86a728022323c450dce0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20=C3=81lvarez?= Date: Fri, 15 Sep 2017 11:52:54 -0300 Subject: [PATCH] Aumentando el code coverage para pasar este PR --- popular_proposal/tests/subscription_tests.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/popular_proposal/tests/subscription_tests.py b/popular_proposal/tests/subscription_tests.py index c8422f01..7f41a985 100644 --- a/popular_proposal/tests/subscription_tests.py +++ b/popular_proposal/tests/subscription_tests.py @@ -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, ])